public Method

TimeZone.<=>(zone)

Compare this time zone to the parameter. The two are comapred first on their offsets, and then by name.

Source Code

# File active_support/values/time_zone.rb, line 167
def <=>(zone)
  result = (utc_offset <=> zone.utc_offset)
  result = (name <=> zone.name) if result == 0
  result
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.