From: Guillaume Marcais Date: 2004-01-30T07:57:06+09:00 Subject: Re: time comparison On Thu, 2004-01-29 at 15:14, Hal Fulton wrote: > Mark J. Reed wrote: > > On Fri, Jan 30, 2004 at 03:51:31AM +0900, Guillaume Marcais wrote: > > > >>t3 = t2 - 24 * 2600 * x # - for Time work on the seconds > > > > > > 3600. There are 3,600 seconds in an hour, not 2600. :) > > Not in funkadecimal. :) > > Ha, he must have been reading _2600_ recently. > > Hal If accuracy really matters to you and funkadecimal doesn't fancy you, you can always do: t3 = t2 - x * (Time.mktime(1960, 1, 2) - Time.mktime(1960, 1, 1)) :) Guillaume.