note 63784 deleted from function.mktime by bjori
| From: | bjori@php.net | Date: | Thu, 30 Mar 2006 16:18:17 +0000 |
| Subject: | note 63784 deleted from function.mktime by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-107043@lists.php.net to get a copy of this message | ||
Note Submitter: WildOranges
Reason: integrated
----
In regards to Bill's note.
It shows wrong because there's not 30 days in Febuary. It's adding the extra 2 days past
28th February which would be 2006-03-02
Try the 28th:-
date("Y-m-d H:i:s", mktime(5, 47, 23, 1, 28, 2006)) returns 2006-01-28 05:47:23 =
correct!
date("Y-m-d H:i:s", mktime(5, 47, 23, 2, 28, 2006)) returns 2006-02-28 05:47:23 =
correct!
date("Y-m-d H:i:s", mktime(5, 47, 23, 3, 28, 2006)) returns 2006-03-28 05:47:23 =
correct!
mktime() does work!