instance method
utc_offset
Ruby on Rails 7.0.10
Since v2.2.3Signature
utc_offset()
Returns the offset of this time zone from UTC in seconds.
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 308
def utc_offset
@utc_offset || tzinfo&.current_period&.base_utc_offset
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 308
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone