Bug #16445 Updated: mktime
| From: | sander@php.net | Date: | Fri, 05 Apr 2002 10:14:42 +0000 |
| Subject: | Bug #16445 Updated: mktime | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-4102@lists.php.net to get a copy of this message | ||
ID: 16445
Updated by: sander@php.net
Reported By: delorme.maxime@free.fr
-Status: Open
+Status: Assigned
Bug Type: Documentation problem
Operating System: any
PHP Version: 4.1.2
-Assigned To:
+Assigned To: sander
New Comment:
I'll fix that...
Previous Comments:
------------------------------------------------------------------------
[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