From: Kirk Haines Date: 2005-11-15T03:47:03+09:00 Subject: Re: Converting between Time and DateTime 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. Hmmm. It's a good question, and I don't have as good an answer as you want, probably. Personally, I use Time unless I am dealing with date ranges that go beyond what Time handles, as a general rule. Kirk Haines