gmdate
gmdate
gmdate
- It format a GMT/CUT date/time.
Syntax:
string gmdate ( string format [, int timestamp])
It is identical to the date() function except that the time returned is Greenwich Mean Time (GMT). It returns the date for the give timestamp in given format.
Example:
echo date (”M d Y H:i:s”);
It return the date format of the current time zone. we specified.
now, it displays Mar 15 2007 14:38:04 (GMT + 5.30) for us.
echo gmdate (”M d Y H:i:s”);
It return the date format of the GMT.
now, it displays Mar 15 2007 09:08:04.
