note 45657 added to function.mktime

From: Date: Tue, 14 Sep 2004 13:24:51 +0000
Subject: note 45657 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-76665@lists.php.net to get a copy of this message
Using a leading zero in the month can return unexpected results. For example: mktime(7, 0, 0, 09, 11, 2004) returns 1071147600 which is exactly ten months in the past mktime(7, 0, 0, 9, 11, 2004) returns 1094904000 which is the correct date and time ---- Manual Page -- http://www.php.net/manual/en/function.mktime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45657 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45657&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45657&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76665) next »