Returns the offset of this time zone as a formatted string, of the format "+HH:MM".
Source Code
# File active_support/values/time_zone.rb, line 161 def formatted_offset(colon=true, alternate_utc_string = nil) utc_offset == 0 && alternate_utc_string || utc_offset.to_utc_offset_s(colon) end
<code/>and<pre/>for code samples.