From: Sam Gentle Date: 2005-11-15T15:51:16+09:00 Subject: Re: Converting between Time and DateTime On 11/15/05, Kirk Haines wrote: > On Monday 14 November 2005 11:12 am, Adam Sanderson wrote: > > Is there any reason to choose one over the other? At least for post > > 1970 dates? I've always found Time's API a little easier to use. > > > > Anyone have thoughts on when one would want to use DateTime vs Time? > > The range is one difference. If you want to represent 376 AD, you can't use > Time. > > Time will be faster, since DateTime uses Rational for everything. DateTime's > units are days and fractions of days. That might make a difference to you, > or it might not. If you are doing a lot of date conversion or date math, you > might find DateTime easier to use. Sounds a bit to me like the difference between Fixnum and Bignum... Sam