gmdate
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 ...
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.