From: andy@... (Andrew Hunt) Date: 2001-01-31T22:40:02+09:00 Subject: [ruby-talk:10166] Re: DateTime class for Ruby? On Wed, 31 Jan 2001 11:04:11 +0900, Ben Tilly wrote: > andy@toolshed.com (Andrew Hunt) wrote: > > > >On Wed, 31 Jan 2001 06:43:05 +0900, Michael Neumann > > > >wrote: > > > Hi, > > > > > > Is there a "DateTime" class in Ruby, which can handle dates before 1970 > > > as well as storing the time? > > > If I use Date from "date.rb" this will not store the time, and > > > if I use Time this will raise an "time out of range" error when year is > >below 1970 (UNIX-date :(. > > > > > >Most people don't seem to care about time when dealing with > >dates a few hundred years old :-) > > > >Just out of curiosity, what is the application that > >requires this? > > A general-purpose library should attempt to anticipate > and provide for unexpected uses... Oh, agreed - and I think this ought to be implemented if it isn't currently. I'm just curious as to practical applications outside of astrology :-) /\ndy