compare


Description:

public int compare (DateTime dt)

A comparison function for DateTimes that is suitable as a SearchFunc.

Both DateTimes must be non-null.

Parameters:

this

first DateTime to compare

dt2

second DateTime to compare

Returns:

-1, 0 or 1 if this is less than, equal to or greater than dt2.