instance method constant_period

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

constant_period(tzinfo)

A zone without transitions, such as UTC, has a single period for all time. It is kept so that looking it up doesn’t build a new one each time.

Parameters

tzinfo req
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 672
      def constant_period(tzinfo)
        period = tzinfo.period_for_utc(UTC_TIME)
        period if period.start_transition.nil? && period.end_transition.nil?
      end

Defined in activesupport/lib/active_support/values/time_zone.rb line 672 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::TimeZone

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close