compare


Description:

public int compare (Date rhs)

qsort-style comparison function for dates.

Both dates must be valid.

Parameters:

this

first date to compare

rhs

second date to compare

Returns:

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