note 34261 deleted from function.getdate by ali
| From: | ali@php.net | Date: | Sat, 06 Sep 2003 15:31:04 +0000 |
| Subject: | note 34261 deleted from function.getdate by ali | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55543@lists.php.net to get a copy of this message | ||
Note Submitter: mikeNO@SPAMdthought.net
----
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.