class GreenButtonData::Parser::LocalTimeParameters
Public Instance Methods
dst_ends_at(year = Time.now.year)
click to toggle source
# File lib/green-button-data/parser/local_time_parameters.rb, line 20 def dst_ends_at(year = Time.now.year) byte_to_dst_datetime @dst_end_rule, year end
dst_starts_at(year = Time.now.year)
click to toggle source
# File lib/green-button-data/parser/local_time_parameters.rb, line 16 def dst_starts_at(year = Time.now.year) byte_to_dst_datetime @dst_start_rule, year end
total_offset()
click to toggle source
# File lib/green-button-data/parser/local_time_parameters.rb, line 27 def total_offset @dst_offset + @tz_offset end
total_offset_hours()
click to toggle source
# File lib/green-button-data/parser/local_time_parameters.rb, line 31 def total_offset_hours total_offset / 3600 end