class TZInfo::TZDataUntil

:nodoc:
A tz data Zone until reference.

def initialize(spec)

def initialize(spec)      
  parts = spec.split(/\s+/)      
  raise "Invalid until: #{spec}" if parts.length < 1
  
  @year = parts[0].to_i
  @month = parts.length > 1 ? TZDataParser.parse_month(parts[1]) : 1
  @day = TZDataDayOfMonth.new(parts.length > 2 ? parts[2] : '1')
  @time = TZDataTime.new(parts.length > 3 ? parts[3] : '00:00')
end

def to_utc(utc_offset, std_offset)

Converts the reference to a UTC DateTime.
def to_utc(utc_offset, std_offset)
  @time.to_utc(utc_offset, std_offset, @year, @month, @day.to_absolute(@year, @month))            
end