note 20110 added to function.mktime

From: Date: Fri, 22 Mar 2002 15:32:58 +0000
Subject: note 20110 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-28079@lists.php.net to get a copy of this message
Warning the difference between two unix dates is sometime different than : 24*3600 seconds ! (bug !). ex :difference btw : 2002-03-31 and 2002-04-01 is 82800 which is 23*3600... using this syntax : mktime(0,0,0,$m,$d,y); here is a hint to use a correct date scan : for ($cpt=$unix_date_debut; $cpt<=$unix_date_fin; $cpt=mktime(0,0,0,strftime("%m",$cpt), strftime("%d",$cpt)+1, strftime("%Y",$cpt)) hope it will help. And hope it was fix i use PHP Version 4.0.5RC1 -- http://www.php.net/manual/en/function.mktime.php http://master.php.net/manage/user-notes.php?action=edit+20110 http://master.php.net/manage/user-notes.php?action=delete+20110 http://master.php.net/manage/user-notes.php?action=reject+20110

« previous php.notes (#28079) next »