note 43549 added to function.gmstrftime
| From: | neoatgothic-chatd0tde at rn2 dot php dot net | Date: | Fri, 25 Jun 2004 03:27:16 +0000 |
| Subject: | note 43549 added to function.gmstrftime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71630@lists.php.net to get a copy of this message | ||
To get a RFC 850 date (used in HTTP) of the current time:
gmstrftime ("%A %d-%b-%y %T %Z", time ());
This will get for example:
Friday 25-Jun-04 03:30:23 GMT
Please note that times in HTTP-headers _must_ be GMT, so use gmstrftime() instead of strftime().
----
Manual Page -- http://www.php.net/manual/en/function.gmstrftime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43549
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43549&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43549&report=yes
Search -- http://master.php.net/manage/user-notes.php