P
Paul Brannan
I can use Time.parse to parse a timestamp in the local timezone, e.g.:
irb(main):001:0> require 'time'
=> true
irb(main):002:0> t = Time.parse('20050103-14:31:26')
=> Mon Jan 03 14:31:26 EST 2005
But how can I parse the above timestamp in a timezone other than the
local timezone (e.g. I want the method to assume that the timestamp is
in UTC)?
Paul
irb(main):001:0> require 'time'
=> true
irb(main):002:0> t = Time.parse('20050103-14:31:26')
=> Mon Jan 03 14:31:26 EST 2005
But how can I parse the above timestamp in a timezone other than the
local timezone (e.g. I want the method to assume that the timestamp is
in UTC)?
Paul