note 51454 deleted from function.mktime by googleguy

From: Date: Tue, 22 Oct 2013 10:17:38 +0000
Subject: note 51454 deleted from function.mktime by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196981@lists.php.net to get a copy of this message
Note Submitter: colin dot horne at gmail dot com ---- 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)); ?>

« previous php.notes (#196981) next »