Date time parse or time class?
This is for Ruby
Need help understanding Time.parse. I want the output to be "2011-01-02
11:00:00"
but I am getting "2011-01-02 11:00:00 -0800" with the following code. Any
ideas?
require 'time'
def measure
Time.parse("2011-1-2 11:00:00")
end
No comments:
Post a Comment