class TZInfo::TZDataObservance
:nodoc:
@private
A observance within a zone (a line within the zone definition).
def initialize(utc_offset, rule_set, format, valid_until)
def initialize(utc_offset, rule_set, format, valid_until) @utc_offset = TZDataParser.parse_offset(utc_offset) @rule_set = rule_set @format = TZDataFormat.new(format) @valid_until = valid_until.nil? ? nil : TZDataUntil.new(valid_until) end
def std_offset
def std_offset if @rule_set.kind_of?(TZDataFixedOffsetRules) @rule_set.offset else 0 end end