instance method
constant_period
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
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
-
tzinforeq
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