instance method
utc_offset
Ruby on Rails 3.0.20
Since v2.2.3Signature
utc_offset()
No documentation comment.
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 210
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 210
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone