note 94166 deleted from function.mktime by danbrown
| From: | danbrown@php.net | Date: | Tue, 20 Oct 2009 21:05:27 +0000 |
| Subject: | note 94166 deleted from function.mktime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161926@lists.php.net to get a copy of this message | ||
Note Submitter: jrh binarydesigninc com
----
Made an interesting observation in the behaviour of mktime whilst debugging some date validation
code.
echo(date('m/d/Y',mktime(23,59,59,1,0,0))); --> 12/31/1999
echo(date('m/d/Y',mktime(23,59,59,0,0,0))); --> 12/31/1969
echo(date('m/d/Y',mktime(23,59,59,0,1,0))); --> 12/01/1999