note 32808 added to function.mktime
| From: | phyreDONTSPAMME at rogers dot com | Date: | Sat, 07 Jun 2003 19:57:10 +0000 |
| Subject: | note 32808 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49949@lists.php.net to get a copy of this message | ||
Here's an interesting note (using PHP 4.2.x):
echo date('Y-m-d', mktime(0, 0, 0, 08, 6, 2003))
>> 2002-12-06
echo date('Y-m-d', mktime(0, 0, 0, 8, 6, 2003))
>> 2003-08-06
Odd that putting a leading zero on the month (has no effect on the day), causes issues. Something
to note in terms of using the function as well.
Cheers;
-M
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32808
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32808&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32808&report=yes