Flowdock
method

formatted_offset

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: DateTime
formatted_offset(colon = true, alternate_utc_string = nil) public

datetime = DateTime.civil(2000, 1, 1, 0, 0, 0, Rational(-6, 24)) datetime.formatted_offset # => “-06:00” datetime.formatted_offset(false) # => “-0600”

Show source
Register or log in to add new notes.