note 50265 added to function.mktime
| From: | gargsuchi at gmail dot com | Date: | Wed, 23 Feb 2005 12:11:32 +0000 |
| Subject: | note 50265 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85421@lists.php.net to get a copy of this message | ||
what would happen if i write
$t = mktime(0,0,0,0,20, 2005);
echo date("d M Y", $t);
I would expect it to give me the 20th day of 2005 (i.e. 20 Jan 2005)
But instead it gives me 19 Dec 2004
Could anybody please explain....
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50265
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50265&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50265&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50265&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50265&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50265&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50265&report=yes
Search -- http://master.php.net/manage/user-notes.php