Paul Brannan
1/31/2007 9:30:00 PM
On Thu, Feb 01, 2007 at 06:20:08AM +0900, Chris McMahon wrote:
> How can I convert a string such as '2007-01-31 12:22:26' to a Time
> object?
irb(main):001:0> require 'time'
=> true
irb(main):002:0> Time.parse('2007-01-31 12:22:26')
=> Wed Jan 31 12:22:26 EST 2007