class TZInfo::DataTimezone
def transitions_up_to(to, from = nil)
def transitions_up_to(to, from = nil) raise ArgumentError, 'to must be specified' unless to to_timestamp = Timestamp.for(to) from_timestamp = from && Timestamp.for(from) begin info.transitions_up_to(to_timestamp, from_timestamp) rescue ArgumentError => e raise ArgumentError, e.message.gsub('_timestamp', '') end end