Class: Cumulus::Common::UTCTimeSource
- Inherits:
-
Object
- Object
- Cumulus::Common::UTCTimeSource
- Defined in:
- lib/common/models/UTCTimeSource.rb
Instance Method Summary collapse
-
#local(*args) ⇒ Object
Make local always use utc time.
-
#now ⇒ Object
Make now always return now in UTC.
Instance Method Details
#local(*args) ⇒ Object
Make local always use utc time
11 12 13 |
# File 'lib/common/models/UTCTimeSource.rb', line 11 def local(*args) Time.utc(*args) end |
#now ⇒ Object
Make now always return now in UTC
6 7 8 |
# File 'lib/common/models/UTCTimeSource.rb', line 6 def now Time.now.utc end |