compare

fun compare(rhs: Date): Int

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

Return

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

Parameters

rhs

second date to compare