ActiveSupport、String#to_time
>> require "rubygems" => true >> require "active_support" => true >> "2008-01-01".to_time => Tue Jan 01 00:00:00 UTC 2008 >> "2008-01-01".to_time(:local) => Tue Jan 01 00:00:00 +0900 2008 >> "2008-01-01".to_time.class => Time