System.DateTimeOffset.System.IComparable.CompareTo Method

Compares the value of the current DateTimeOffset object with another object of the same type.

Syntax

int System.IComparable.CompareTo (object obj)

Parameters

obj
The object to compare with the current DateTimeOffset object.

Returns

A 32-bit signed integer that indicates whether the current DateTimeOffset object is less than, equal to, or greater than obj. The return values of the method are interpreted as follows:

Less than zero

The current DateTimeOffset object is less than (earlier than) obj.

Zero

The current DateTimeOffset object is equal to (the same point in time as) obj.

Greater than zero

The current DateTimeOffset object is greater than (later than) obj.

Remarks

Documentation for this section has not yet been entered.

Requirements

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