note 36657 added to function.mktime
| From: | fransuser at NOSPAMexample dot com | Date: | Fri, 17 Oct 2003 18:12:29 +0000 |
| Subject: | note 36657 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58772@lists.php.net to get a copy of this message | ||
$i = mktime(0,0,0,10,22,2003) in a loop adding 86400 to it will
produce incorrect date('d',$i) results. Ik getting 2 times the 26 th of october this way.
I think because incorrect rounding the results.
use mktime(12,0,0,10,22,2003) instead.
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36657
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36657&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36657&report=yes
Search -- http://master.php.net/manage/user-notes.php