From: Trans Date: 2008-03-16T10:32:04+09:00 Subject: Re: Time vs Datetime vs Date On Mar 15, 9:05 pm, Stefan Rusterholz wrote: > Daniel Mendler wrote: > > Hi all, > > > why are there three different classes representing time? I think that is > > a really bad spot in the ruby library, because Time and DateTime seem to > > be incompatible to each other. For example in rails sql columns declared > > as datetime are returned as time, so I had to convert them manually. It > > doesn't seems to be consistent... > > > Daniel > > IMO they all suck. I invite everybody with spare time and some ruby/C > knowledge to help me finish chronos > (http://butler.rubyforge.org/svn/Version%201.0/chronos_library/- > missing are DST implementation, refactoring to use modules so that one > can use it with Gregiorian, Julian, Chinese, Discordian or whatever > calendar system he/she likes, C implementation of the math stuff for > gregorian even though the ruby implementation beats Date by around > factor 10, calendar - a mutable gregorian datetime object and some other > things). I would recommend finishing in Ruby first. Worry about C optimizations later. 2 cents, T.