class TZInfo::Timezone
def current_time_and_period
-
(Array)- an `Array` containing the current {TimeWithOffset} for the
def current_time_and_period period = nil local_time = Timestamp.for(Time.now) do |ts| period = period_for(ts) TimestampWithOffset.set_timezone_offset(ts, period.offset) end [local_time, period] end