Flowdock
<=>(p1) public

Comparison—Compares time with other_time or with numeric, which is the number of seconds (possibly fractional) since epoch.

t = Time.now       #=> Wed Apr 09 08:56:03 CDT 2003
t2 = t + 2592000   #=> Fri May 09 08:56:03 CDT 2003
t <=> t2           #=> -1
t2 <=> t           #=> 1
t <=> t            #=> 0
Show source
Register or log in to add new notes.