Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/openid/util.rb
Instance Method Summary collapse
-
#to_time ⇒ Object
Converts to a UTC Time.
Instance Method Details
#to_time ⇒ Object
Converts to a UTC Time.
56 57 58 59 60 61 62 63 |
# File 'lib/openid/util.rb', line 56 def to_time() if offset == 0 return Time.gm(year, month, day, hour, min, sec) else utc = new_offset return Time.gm(utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec) end end |