Charlie Bowman wrote:
> 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?

ri Time.parse

freebie:~ 701> irb -r time
irb(main):001:0> Time.parse( "Mon Feb 13 14:22:10 EST 2006" )
=> Mon Feb 13 14:22:10 EST 2006
irb(main):002:0> t = Time.parse( "Mon Feb 13 14:22:10 EST 2006" )
=> Mon Feb 13 14:22:10 EST 2006
irb(main):003:0> t = t + 50
=> Mon Feb 13 14:23:00 EST 2006
irb(main):004:0> t = t + 3600
=> Mon Feb 13 15:23:00 EST 2006
irb(main):005:0> t_hour_later = t + 3600
=> Mon Feb 13 16:23:00 EST 2006
irb(main):006:0> t_hour_later - t
=> 3600.0

-- 
Posted via http://www.ruby-forum.com/.