DateTimeInterval.compare Method

Compares this date/time interval to another.
 

Parameters

other

Type: DateTimeInterval
The other interval to compare to.

Return Value


Type: Number (Integer)
-1, 0, or 1 if this instance is less than, equal to, or greater than other, respectively.