note 93259 added to function.mktime
| From: | dolby at xpteam dot eu | Date: | Mon, 31 Aug 2009 07:16:37 +0000 |
| Subject: | note 93259 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160075@lists.php.net to get a copy of this message | ||
I am just wondering is this a bug or expected behaviour:
echo date("r", mktime(0,0,0,9,31,2009));
It returns:
Thu, 01 Oct 2009 00:00:00 +0200
but I "expect" i to be:
Wed, 30 Sep 2009 00:00:00 +0200
Maybe I am missing the point, but I always supposed the mktime considers real dates.
----
Server IP: 147.32.160.17
Probable Submitter: 84.242.100.86
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- https://master.php.net/note/edit/93259
Del: integrated -- https://master.php.net/note/delete/93259/integrated
Del: useless -- https://master.php.net/note/delete/93259/useless
Del: bad code -- https://master.php.net/note/delete/93259/bad+code
Del: spam -- https://master.php.net/note/delete/93259/spam
Del: non-english -- https://master.php.net/note/delete/93259/non-english
Del: in docs -- https://master.php.net/note/delete/93259/in+docs
Del: other reasons-- https://master.php.net/note/delete/93259
Reject -- https://master.php.net/note/reject/93259
Search -- https://master.php.net/manage/user-notes.php