From: Brian Candler Date: 2003-03-14T07:20:25+09:00 Subject: Re: ruby accounts for 25 Hours in a day (2003-03-30) On Thu, Mar 13, 2003 at 06:18:03PM +0900, Ricardo Nogueira wrote: > time = Time.local(2003, 3, 30) # => Sun Mar 30 00:00:00 EST 2003 > > time += 3600 # => Sun Mar 30 01:00:00 EST 2003 > time += 3600 # => Sun Mar 30 02:00:00 EST 2003 > time += 3600 # => Sun Mar 30 02:00:00 EST 2003 AGAIN !!!!! > time += 3600 # => Sun Mar 30 03:00:00 EST 2003 Something wrong with the timezone localisation on your platform - I think it should go from EST to EDT, and it should jump forwards an hour, not backwards. When I was at university in the late 80's, we had a timesharing IBM mainframe system. Every year in October it had to be shut down for an hour when the clocks went back - because otherwise time would go backwards, files would be deleted before they were created, and other temporal paradoxes would arise. Regards, Brian.