Mono Class Library: System.TimeSpan Overview | Members

System.TimeSpan.Compare Method

Returns the sort order of two TimeSpan structures.

public static int Compare (TimeSpan t1, TimeSpan t2)

Parameters

t1
The first TimeSpan to compare.
t2
The second TimeSpan to compare.

Returns

The return value is a negative number, zero, or a positive number reflecting the sort order of t1 as compared to t2. For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value:

ValueCondition
Any negative numbert1 < t2.
Zerot1 == t2.
Any positive numbert1 > t2.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0