From: Kirk Haines Date: 2005-11-17T02:14:28+09:00 Subject: Re: Converting between Time and DateTime On Wednesday 16 November 2005 6:22 am, Ron M wrote: > Daniel Schierbeck wrote: > > Chris Pine wrote: > >> I *wish* Time and DateTime worked more like Fixnum and Bignum. > > > > What kind of change would you suggest? > > I'd like classes like DBI that use Time to (through some trick > like integer->bignum) allow dates 200 years in the future. > > > Today, that's not the case, and selecting fields representing > a 200-year-lease throws an error when done through DBI. That's a DBI problem, though. DBI should use a class appropriate for the input, and IMHO, should probably default to DateTime instead of Time, though that's not really a backwards compatible change. The next best thing is for DBI to pay attention to the inputs, and use DateTime in cases where the inputs are out of range for Time. I can provide you with a patch to enable that. Maybe today. Kirk Haines