Name

<=> — Compares a Date

Synopsis

dateObj.<=>(date)

Description

#<=> compares dateObj with date and returns -1 if dateObj is less than date, 0 if they are equal or 1 if date is less than dateObj.