note 45337 rejected from function.date by tomsommer
| From: | tomsommer@php.net | Date: | Thu, 02 Sep 2004 20:21:51 +0000 |
| Subject: | note 45337 rejected from function.date by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75952@lists.php.net to get a copy of this message | ||
Note Submitter: tbreslow at NOSPAMyahoo dot com
----
The documentation regarding future dates does not seem to be correct.
<?php
$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
?>
If this is executed on Dec 31, 2004 the date returned is Dec 1, 2004. The example essentially says
"current month, increment day, current year". (Unless I'm wrong!)