note 51454 added to function.mktime

From: Date: Thu, 31 Mar 2005 06:48:55 +0000
Subject: note 51454 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-87234@lists.php.net to get a copy of this message
If the month is greater than 12, it goes into the next year. If it is less than 1, it goes into the previous year. Generally, it behaves as you'd expect it to :-) Examples: <?php // January 1, 2005 print date ("F j, Y", mktime (0,0,0,13,1,2004)); // December 1, 2003 print date ("F j, Y", mktime (0,0,0,0,1,2004)); // February 1, 2005 print date ("F j, Y", mktime (0,0,0,14,1,2004)); // November 1, 2003 print date ("F j, Y", mktime (0,0,0,-1,1,2004)); ?> ---- Manual Page -- http://www.php.net/manual/en/function.mktime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51454 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51454&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51454&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51454&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51454&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51454&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51454&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87234) next »