Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/cloudsync/datetime/datetime.rb
Instance Method Summary collapse
Instance Method Details
#to_gm_time ⇒ Object
2 3 4 |
# File 'lib/cloudsync/datetime/datetime.rb', line 2 def to_gm_time to_time(new_offset, :gm) end |
#to_local_time ⇒ Object
6 7 8 |
# File 'lib/cloudsync/datetime/datetime.rb', line 6 def to_local_time to_time(new_offset(DateTime.now.offset-offset), :local) end |