From: Brian Candler Date: 2005-07-21T18:02:27+09:00 Subject: Re: Date.to_time error On Wed, Jul 20, 2005 at 11:46:42PM +0900, Dimitri Aivaliotis wrote: > On 7/20/05, Kev Jackson wrote: > > > I've now discovered that any date prior to 1970 breaks when to_time is > > called on it. > > > > That would make sense, since Time represents time since the Epoch. > See http://www.rubycentral.com/ref/ref_c_time.html for further > details. But what's wrong with negative time values? Unix supports this AFAIK. This with FreeBSD: $ date -r -1000000 Sat Dec 20 11:13:20 BST 1969 And the big time wraparound occurs at t = 2^31, not t = 2^32: $ date -r 2147483647 Tue Jan 19 03:14:07 GMT 2038 Regards, Brian.