|
| HOW TO USE THE gmdate() FUNCTION IN PHP
The gmdate() function is similar to the date() function, the only difference being that gmdate() function returns Greenwich Meridian Time (GMT). It takes the date format as an argument and timestamp as optional argument. If no
timestamp is specified, then timestamp defaults to local server time.
The general format of the gmdate() function is as follows:
gmdate(format);
Example:
echo gmdate("d-m-Y G:i:s");
This outputs:
06-01-2009 10:00:51
Refer to: date() for formatting examples.
See also:
date()
time()
mktime()
strtotime()
microtime()
|
|