gmdate

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.

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.