class Time
def formatted_offset(colon = true, alternate_utc_string = nil)
Time.local(2000).formatted_offset # => "-06:00"
string if the time zone is already UTC.
Returns a formatted string of the offset from UTC, or an alternative
def formatted_offset(colon = true, alternate_utc_string = nil) utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon) end