From: Charlie Bowman Date: 2006-02-14T04:10:12+09:00 Subject: Re: DateTime.parse speed question --=-YgsorYFkaJRjE8G1PiR6 Content-Type: text/plain Content-Transfer-Encoding: 7bit The Time class doesn't appear to have any methods to parse a string into a time object or to find the difference of two times. How can this be done without using the DateTime class? > > > DateTime, being written in Ruby itself, is pretty slow. If you can use > the Time class instead, you will see a significant performance boost, > since it is written in C. > > There is one gotcha about the Time class: on Windows, you can't create > a Time object earlier than January 1, 1970 (this is not a limitation on > *nix). If this is not an issue for you, you might be able to get away > with using Time. > > Jamey > > --=-YgsorYFkaJRjE8G1PiR6--