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