Re: Bug in date calculation?

From: Date: Tue, 06 Mar 2001 10:20:31 +0000
Subject: Re: Bug in date calculation?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-48006@lists.php.net to get a copy of this message
Hello, My guess is that it's the Daylight Savings. Derick On Tue, 6 Mar 2001, Alexander Dohmen wrote: > Hi there, > > since i'm new in here i don't know if this bug is well known. > Try out this: > > <?php > $foo = strtotime("20001027"); > // $foo = strtotime("20001027 2:00:00"); > echo strftime("%x<br>", $foo); > $ += 86400; > echo strftime("%x<br>", $foo); > $foo += 86400; > echo strftime("%x<br>", $foo); > $foo += 86400; > echo strftime("%x<br>", $foo); > ?> > > Here only the commented out line instead of the line before works. > Otherwise the 29th of October will appear twice. > So it appears as if there is a bug in the date-calculation. > > Greetings > > A.D. > > -- > _________________________________________________________________ > Alexander Dohmen > mailto:alex@netcase.nl > > NetCASE Interactive Solutions phone: +31 (0)46 420 1880 > Dr. Nolenslaan 140 fax: +31 (0)46 420 1881 > 6136 GV Sittard http://www.netcase.nl�.á¢W9° > ñ~c7§ñŒ > _________________________________________________________________ > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net --------------------------------------------------------------------- JDI Media Solutions - www.jdimedia.nl - d.rethans@jdimedia.nl Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands ---------------------------------------------------------------------

« previous php.dev (#48006) next »