Class: Halftime::TimeZones::Current
- Inherits:
-
Object
- Object
- Halftime::TimeZones::Current
- Defined in:
- lib/halftime/time_zones.rb
Instance Method Summary collapse
-
#initialize(now) ⇒ Current
constructor
A new instance of Current.
- #offset ⇒ Object
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
#offset ⇒ Object
8 9 10 |
# File 'lib/halftime/time_zones.rb', line 8 def offset now.utc_offset end |