note 34261 added to function.getdate
| From: | mikeNO at SPAMdthought dot net | Date: | Sun, 20 Jul 2003 02:51:45 +0000 |
| Subject: | note 34261 added to function.getdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52409@lists.php.net to get a copy of this message | ||
Although it does not appear to be documented, getdate also returns the first numerical index item as
the timestamp that was used to make the date.
$mytime = getdate();
print $mytime[0];
displays the timestamp of the current date. Very useful for using in other timestamp based
calculations.
----
Manual Page -- http://www.php.net/manual/en/function.getdate.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34261
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34261&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34261&report=yes