Re: Dates - adding to unix 86400 seconds not equal nextday

From: Date: Wed, 01 Sep 2004 14:12:56 +0000
Subject: Re: Dates - adding to unix 86400 seconds not equal nextday
References: 1 2 3 4 5 6  Groups: php.db 
Request: Send a blank email to php-db+get-35990@lists.php.net to get a copy of this message
I think your problem might be due to daylight savings time. 10/31/04 is the day that the clocks get set back 1 hour (at 2am). therefore we have 25 hours in the day on 10/31. not sure how to get around it though, or why my system accounts for it. -- Craig Brothers cbrothers@autorevenue.com On Wed, 2004-09-01 at 09:53, ioannes wrote: > Sunday 31st of October 2004 12:00:00 AM unix: 1099177200 - first day > Saturday 30th of October 2004 12:00:00 AM unix: 1099090800 - previous day > Sunday 31st of October 2004 11:00:00 PM unix: 1099263600 - day after first > day > > if I add 86400 to first - 1099177200 - I get 1099177200+86400=1099263600 > [day after first day above], but this gives me 11pm on 31 Oct as above. > > ? > > > ----- Original Message ----- > From: "John Holmes" <holmes072000@charter.net> > To: "ioannes" <ioannes@btinternet.com>; <php-db@lists.php.net> > Sent: Wednesday, September 01, 2004 2:31 PM > Subject: Re: [PHP-DB] Dates - adding to unix 86400 seconds not equal nextday > > > > From: "ioannes" <ioannes@btinternet.com> > > > >> When I run this code I get: > >> > >> 31 10 2004 > >> 31 10 2004 > >> > >> http://www.shortstay-london.com/testdates.php > > > > Try printing out the hours, minutes and seconds along with the date and > > you'll see the issue. > > > > ---John Holmes... > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#35990) next »