From: [EMAIL PROTECTED] Operating system: any PHP version: 4.1.2 PHP Bug Type: Documentation problem Bug description: mktime
for ($i = 0 ; $i< 365; $i++){ $date = mktime(0,0,0,1,$i,2001); $date1 = mktime(0,0,0,1,$i-1,2001); if (($date - $date1 ) /3600 <> 24){ echo "<br>" .date("Y m d", $date1) . " "; echo ($date - $date1 ) /3600 ." h";} } It is not explicite that the mktime function take into account the change of hour some day in the year. The consequence is that (a date return by mktime )- 86400 is not always the day before. -- Edit bug report at http://bugs.php.net/?id=16445&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16445&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16445&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16445&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16445&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16445&r=support Expected behavior: http://bugs.php.net/fix.php?id=16445&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16445&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16445&r=submittedtwice