instance method
formatted_offset
Ruby on Rails 4.0.13
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 228
def formatted_offset(colon=true, alternate_utc_string = nil)
utc_offset == 0 && alternate_utc_string || self.class.seconds_to_utc_offset(utc_offset, colon)
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 228
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone