Class: Cumulus::Common::UTCTimeSource

Inherits:
Object
  • Object
show all
Defined in:
lib/common/models/UTCTimeSource.rb

Instance Method Summary collapse

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

#nowObject

Make now always return now in UTC



6
7
8
# File 'lib/common/models/UTCTimeSource.rb', line 6

def now
  Time.now.utc
end