Bug #16445 Updated: mktime

From: Date: Fri, 05 Apr 2002 20:18:57 +0000
Subject: Bug #16445 Updated: mktime
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-4171@lists.php.net to get a copy of this message
ID: 16445 Updated by: sander@php.net Reported By: delorme.maxime@free.fr -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: any PHP Version: 4.1.2 Assigned To: sander New Comment: This bug has been fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2002-04-05 05:14:42] sander@php.net I'll fix that... ------------------------------------------------------------------------ [2002-04-05 04:51:19] delorme.maxime@free.fr 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 this bug report at http://bugs.php.net/?id=16445&edit=1

« previous php.bugs (#4171) next »