Date.compare

qsort()-style comparison function for dates. Both dates must be valid.

class Date
int
compare

Parameters

rhs Date

second date to compare

Return Value

Type: int

0 for equal, less than zero if lhs is less than rhs, greater than zero if lhs is greater than rhs