note 47218 deleted from function.mktime by aidan

From: Date: Sun, 07 Nov 2004 11:48:06 +0000
Subject: note 47218 deleted from function.mktime by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80216@lists.php.net to get a copy of this message
Note Submitter: azornoz aatt yahoo.es ---- If the month is a string mktime seems to look good. mktime(0,0,0,09,d,2004) works ok if d < = 30 , remember september has only 30 days. But mktime(0,0,0,09,d,2004) behaves strange if d > 30, per example: date( 'D', mktime(0,0,0,09,31,2004)) Wed date( 'D',mktime(0,0,0,9,31,2004)) Fri mktime(0,0,0,09,31,2004) 1072825200 mktime(0,0,0,9,31,2004) 1096581600 (mktime(0,0,0,9,31,2004)-(mktime(0,0,0,09,31,2004))/(60*60*24) 274.958333333 So take care of the string if the day is over the end of month ---- Reason: useless note

« previous php.notes (#80216) next »