G
Guillaume Loader
Hello everyone!
I have a question
When I run this command :
puts Time.now
I got => 2009-02-18T14:31:17-08:00
But if then I do this :
require 'date'; expiration_date = DateTime.new(2008, 02, 18, 12, 12,
13); puts expiration_date
I got => 2008-02-18T12:12:13+00:00
My question is : What is the "-08:00" ? I assume it's the timezone? Then
how to set my expiration_date variable to have the same timezone?
Thank you!
I have a question
When I run this command :
puts Time.now
I got => 2009-02-18T14:31:17-08:00
But if then I do this :
require 'date'; expiration_date = DateTime.new(2008, 02, 18, 12, 12,
13); puts expiration_date
I got => 2008-02-18T12:12:13+00:00
My question is : What is the "-08:00" ? I assume it's the timezone? Then
how to set my expiration_date variable to have the same timezone?
Thank you!