From: Michael Neumann Date: 2001-08-25T18:39:27+09:00 Subject: [ruby-talk:20357] Re: Time before the "Big Bang" Brent Rowland wrote: > I suppose this is a Unix question in a Ruby context: > > How do we represent dates before the Creation of the Universe (Jan 1, 1970)? > I've been hacking on the Interbase driver, and discovered Ruby didn't > like some dates in my database, because they were prior to 1970. > rb_time_new insists on positive numbers. For now I'm flooring > retrieved dates at zero, but this isn't really an acceptable long-term > solution. There are two (more?) possible solutions. 1) define your own DateTime class (I've done this for Ruby/DB2 and Ruby/DBI) 2) use date3.rb from RAA Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de