Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/time_extentions.rb
Instance Method Summary collapse
Instance Method Details
#to_gm_time ⇒ Object
18 19 20 |
# File 'lib/time_extentions.rb', line 18 def to_gm_time to_time(new_offset, :gm) end |
#to_local_time ⇒ Object
22 23 24 |
# File 'lib/time_extentions.rb', line 22 def to_local_time to_time(new_offset(DateTime.now.offset-offset), :local) end |