instance method
formatted_offset
Ruby on Rails 2.2.3
Since v2.2.3Signature
formatted_offset(colon=true, alternate_utc_string = nil)
Returns the offset of this time zone as a formatted string, of the format “+HH:MM”.
Parameters
-
colonopt = true -
alternate_utc_stringopt = nil
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 192
def formatted_offset(colon=true, alternate_utc_string = nil)
utc_offset == 0 && alternate_utc_string || utc_offset.to_utc_offset_s(colon)
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 192
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone