Re: [PHP-DEV] Bug #11805 Updated: missing 3600 seconds between 10/13/2001 and 10/15/2001 From: Steve Meyers (steve-php-lists <email protected>)
Date: 06/29/01

The following script shows an extra 3600 seconds on the 29th of October for
me:

$last_ts = mktime(0,0,0,10,0,2001);

for ($i = 1; $i < 32; $i++) {
        $ts = mktime(0, 0, 0, 10, $i, 2001);
        printf("%2s: %s (%s)\n", $i, $ts, $ts - $last_ts);
        $last_ts = $ts;
}

However, I think that's just Daylight Savings Time... I'm guessing that
this bug report somehow relates to daylight savings, and thus it isn't
really a bug at all.

--

Steve Meyers

<sniper <email protected>> wrote in message news:20010629185212.10270.qmail <email protected> > ID: 11805 > Updated by: sniper > Reported By: php <email protected> > Old-Status: Open > Status: Feedback > Bug Type: Date/time related > Operating system: > PHP Version: 4.0.5 > Assigned To: > Comments: > > Does this happen with PHP 4.0.6? (I can't reproduce this with it) > > > Previous Comments: > -------------------------------------------------------------------------- - > > [2001-06-29 13:49:51] php <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: php-dev-unsubscribe <email protected> > For additional commands, e-mail: php-dev-help <email protected> > To contact the list administrators, e-mail: php-list-admin <email protected> >

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>