note 20110 deleted from function.mktime by alindeman

From: Date: Fri, 22 Mar 2002 21:52:28 +0000
Subject: note 20110 deleted from function.mktime by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28091@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

« previous php.notes (#28091) next »