note 63781 added to function.mktime

From: Date: Thu, 30 Mar 2006 15:06:26 +0000
Subject: note 63781 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-107035@lists.php.net to get a copy of this message
In response to Bill: > B: date("Y-m-d H:i:s", mktime(5, 47, 23, 2, 30, 2006)) returns 2006-03-02 05:47:23 = > incorrect! The above behaviour is correct. Read the manual again. February (month=2) has 28 days, hence 30th day of 2nd month is converted to 2nd day of 3rd month. ---- Server IP: 66.207.199.35 Probable Submitter: 206.186.59.97 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mktime.php Edit -- http://master.php.net/note/edit/63781 Del: integrated -- http://master.php.net/note/delete/63781/integrated Del: useless -- http://master.php.net/note/delete/63781/useless Del: bad code -- http://master.php.net/note/delete/63781/bad+code Del: spam -- http://master.php.net/note/delete/63781/spam Del: non-english -- http://master.php.net/note/delete/63781/non-english Del: in docs -- http://master.php.net/note/delete/63781/in+docs Del: other reasons-- http://master.php.net/note/delete/63781 Reject -- http://master.php.net/note/reject/63781 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107035) next »