SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 460 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


Supported date and time formats include Unix timestamps, RFC 2822, ISO 8601, and
any format that the PHP strtotime() function is capable of parsing.
For more information about RFC 2822, ISO 8601, and strtotime()
refer to these sites respectively:
http://tools.ietf.org/html/rfc2822
http://www.iso.org/iso/en/prods-services/popstds/
datesandtime.html
http://php.net/strtotime
??? ??? ??? ??? ??? ??? ???
Chapter 12
[ 341 ]
These examples demonstrate the use of some of the date and time formats that are
supported by JDate when creating a new JDate object:
// Unix timestamp
$date1 = new JDate(-1417564800);
// ISO 8601
$date2 = new JDate('1925-01-30T00:00:00');
// RFC 2822
$date3 = new JDate('Fri, 30 Jan 1925 00:00:00');
// User string
$date4 = new JDate('January 30th 1925');
The time zone parameter is defined as the number of hours offset from UTC
(Coordinated Universal Time), also referred to as GMT (Greenwich Mean Time) and
Z (Zulu Time).
A UTC offset is expressed as UTC+/- the number of hours.


Pages:
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472