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
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
Returns the current local time and {TimezonePeriod} for the time zone as
 an `Array`. The first element is the time as a {TimeWithOffset}. The
 second element is the period.

 @return [Array] an `Array` containing the current {TimeWithOffset} for the
   time zone as the first element and the current {TimezonePeriod} for the
   time zone as the second element.