note 41755 added to function.mktime
| From: | s dot kraus at moscher dot com | Date: | Wed, 21 Apr 2004 17:35:21 +0000 |
| Subject: | note 41755 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68461@lists.php.net to get a copy of this message | ||
NoOne wrote:
> mktime(0, 0, 0, 02, 0, 2004);
> i didn't think the numbers 0 and 09 were the same.
> guess i was wrong?!?!?
Hi NoOne,
you should note, that 0 and NULL are not the same. As the month 0 does not exist, PHP estimates,
that you mean the 12th month of the previous year (12.2004). If you want to use the system's
date, try this:
mktime(0, 0, 0, 02);
regards from germany,
Sebastian
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41755
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41755&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41755&report=yes
Search -- http://master.php.net/manage/user-notes.php