Re: Re: php's 27/10/2002 problem Important

From: Date: Tue, 17 Sep 2002 01:17:16 +0000
Subject: Re: Re: php's 27/10/2002 problem Important
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-116583@lists.php.net to get a copy of this message
Rick Widmer <php3@developersdesk.com> wrote: > At 02:56 PM 9/16/02 +0000, Jim Winstead wrote: >>Mahmut Kursun <kursun@parkgroup.com.tr> wrote: >> > If you are trying to code a sequantial date requiring algorithm you will >> > see that for 27/10/2002 you have two timestamps!!!! >> > >> > And that is a serious bug I think. Any comments! >> >>10/27/2002 must be a twenty-five hour day in your timezone. (end of >>daylight savings time?) > > No. In fact there are 86,400 (60 * 60 * 24) seconds that occur during > 10/27/2002 and most every other day. If you don't look at the HH:MM:SS > part of a timestamp there are usually 86,400 different timestamp values > that will return the same MM/DD/YYYY. Daylight savings time may > affect the number of seconds in a given day. in fact, there are 90,000 (60 * 60 * 25) seconds that occur during a day on which the observation of daylight saving time is ended, giving you an amazing 90,000 different timestamp values that will return the same MM/DD/YYYY. in fact, about 3,600 of them will even give you the same HH:MM:SS! if this issue didn't come up twice a year, it would almost be funny. (and for this keeping score at home, 10/27/2002 is indeed when the DST changeover happens this year in the US and EU.) jim

« previous php.general (#116583) next »