note 41553 added to function.date
| From: | php at document-root dot de | Date: | Wed, 14 Apr 2004 14:02:46 +0000 |
| Subject: | note 41553 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68113@lists.php.net to get a copy of this message | ||
To convert an unix timestamp to suite the syntax of a GeneralizedTime attribute for OpenLDAP, you
can use
date ('YmdHiZO'). Note that this conversion uses local time, the recommended way is to
store dates in UTC.
If your date is in UTC, just use
date ('YmdHiZ').'Z' to convert it ("Z" stands for "Zulu",
which is UTC).
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41553
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41553&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41553&report=yes
Search -- http://master.php.net/manage/user-notes.php