ID: 11805
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Date/time related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

daylight saving time !

look for the optional seventh parameter to mktime
on http://php.net/mktime

Previous Comments:
---------------------------------------------------------------------------

[2001-06-29 14:52:12] [EMAIL PROTECTED]

Does this happen with PHP 4.0.6? (I can't reproduce this with it)


---------------------------------------------------------------------------

[2001-06-29 13:49:51] [EMAIL PROTECTED]

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



---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11805&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to