TimeSpan: CompareTo

CompareTo

Compares this TimeSpan with another timespan.



 Public Function CompareTo(
	  ByRef Value As TimeSpan ) As Long

Parameters

Value
[ByRef] TimeSpan. The TimeSpan to compare this instance against.

Return Values

Long -  Value indicating the relation between the two timespans.

Remarks

The return value indicates how the two timespans are in relation to eachother.
1 = This instance is greater than the passed in timespan.
0 = This instance is equal to the passed in timespan.
-1 = This instance is less than the passed in timespan.


If Nothing is passed in 1 is returned.

See Also

Project CorLib Overview

Class TimeSpan Overview