instance method
utc_offset
Ruby on Rails 8.0.4
Since v2.2.3Signature
utc_offset()
Returns the offset from current time to UTC time in seconds.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 111
def utc_offset
period.observed_utc_offset
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 111
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone