instance method
formatted_offset
Ruby on Rails 3.1.12
Since v2.2.3Signature
formatted_offset(colon = true, alternate_utc_string = nil)
No documentation comment.
Parameters
-
colonopt = true -
alternate_utc_stringopt = nil
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 97
def formatted_offset(colon = true, alternate_utc_string = nil)
utc? && alternate_utc_string || TimeZone.seconds_to_utc_offset(utc_offset, colon)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 97
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone