September 2001
Intermediate to advanced
768 pages
32h 45m
English
string gmdate(string format, [int time])
| format | Format in which to display the calculated date |
| time | Time in UNIX time format |
Prints a formatted GMT date.
Returns:
Formatted date output in GMT
Description:
This function is similar in nearly all respects to date(). It displays a date in a format specified in the first argument, except that the date string is calculated to be displayed in GMT. This is of more use when combined with mktime() or gmmktime() than when using a static date string. Dates and times can be displayed in any order and combination, with any delimiters. An optional second argument can be used to format the date from a specific time. If the second argument is omitted, the current time is used. The following table ...
Read now
Unlock full access