instance method
utc_offset
Ruby on Rails 6.0.6
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 304
def utc_offset
if @utc_offset
@utc_offset
else
tzinfo.current_period.utc_offset if tzinfo && tzinfo.current_period
end
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 304
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone