From: Alexander Bokovoy Date: 2002-12-12T03:05:42+09:00 Subject: Re: Strainge Time Behaviour On Thu, Dec 12, 2002 at 02:19:55AM +0900, Travis Whitton wrote: > I'm manipulating some dates, and I just found something weird. > > ruby -v > ruby 1.6.7 (2002-03-01) [i586-mswin32] > > # works as expected > irb(main):001:0> Time.local(2002, 4, 29) > Mon Apr 29 00:00:00 EDT 2002 > irb(main):002:0> Time.local(2002, 4, 29) + 86400 > Tue Apr 30 00:00:00 EDT 2002 > > # weird behaviour > irb(main):004:0> Time.local(2002, 10, 27) > Sun Oct 27 00:00:00 EDT 2002 > irb(main):005:0> Time.local(2002, 10, 27) + 86400 > Sun Oct 27 23:00:00 EST 2002 > > So, adding the amount of seconds to equal one day to 10/27/2002 only > brings it up to 23:00. If this is something completely obvious, please > enlighten me. It's causing quite a stir in my program... Day Light savings turnover? -- / Alexander Bokovoy --- As a computer, I find your faith in technology amusing.