APIdock / Ruby on Rails
/
Browse About
method

period

v2.3.8 - Show latest stable - Class: ActiveSupport::TimeWithZone
period()
public

Returns the underlying TZInfo::TimezonePeriod.

# File activesupport/lib/active_support/time_with_zone.rb, line 57
    def period
      @period ||= time_zone.period_for_utc(@utc)
    end

Related methods

  • Instance methods
  • +
  • -
  • <=>
  • acts_like_time?
  • advance
  • ago
  • as_json
  • between?
  • comparable_time
  • dst?
  • eql?
  • formatted_offset
  • freeze
  • future?
  • getgm
  • getlocal
  • getutc
  • gmt?
  • gmt_offset
  • gmtime
  • gmtoff
  • hash
  • httpdate
  • in_time_zone
  • inspect
  • is_a?
  • isdst
  • iso8601
  • kind_of?
  • localtime
  • marshal_dump
  • marshal_load
  • method_missing
  • past?
  • period
  • respond_to?
  • rfc2822
  • rfc822
  • since
  • strftime
  • time
  • to_a
  • to_datetime
  • to_f
  • to_formatted_s
  • to_i
  • to_s
  • to_time
  • to_yaml
  • today?
  • tv_sec
  • usec
  • utc
  • utc?
  • utc_offset
  • xmlschema
  • zone
  • Class methods
  • new
  • Private methods
  • privateduration_of_variable_length?
  • privateget_period_and_ensure_valid_local_time
  • privatetransfer_time_values_to_utc_constructor
APIdock API Documentation Browser

© 2026 APIdock