Class: Halftime::TimeZones::Current

Inherits:
Object
  • Object
show all
Defined in:
lib/halftime/time_zones.rb

Instance Method Summary collapse

Constructor Details

#initialize(now) ⇒ Current

Returns a new instance of Current.



4
5
6
# File 'lib/halftime/time_zones.rb', line 4

def initialize(now)
  @now = now
end

Instance Method Details

#offsetObject



8
9
10
# File 'lib/halftime/time_zones.rb', line 8

def offset
  now.utc_offset
end