instance method
utc_offset
Ruby on Rails 4.0.13
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 106
def utc_offset
period.utc_total_offset
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 106
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone