|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-29 14:52 UTC] sniper@php.net
[2001-06-30 04:57 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
Hello, I am trying to write the days between 10/13/2001 and 10/15/20001: $i = mktime(0,0,0,10,13,2001);// --> 1002942000 $j = mktime(0,0,0,10,15,2001);// --> 1003111200 while ( $i <= $j ) { echo date("m-d-Y",$i); $i +=86400; } but it stops on 10/14/2001, because 1002942000 ( $i ) + 86400 + 86400 ---------------------------- = 1003114800 - 1003111200 ( $j ) ------------------------------ = 3600 ( should be zero ! ) I 've made a work-around using date(m,d+1,Y), but somebdoy please explain me where are the 3600 seconds that are missing ? Thanks, gabriel