[This is preliminary documentation and is subject to change.]
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

C# | Visual Basic | Visual C++ |
public abstract int Compare( OffsetDateTime x, OffsetDateTime y )
Public MustOverride Function Compare ( _ x As OffsetDateTime, _ y As OffsetDateTime _ ) As Integer
public: virtual int Compare( OffsetDateTime x, OffsetDateTime y ) abstract

- x (OffsetDateTime)
- The first object to compare.
- y (OffsetDateTime)
- The second object to compare.

Value Condition Less than zerox is less than y.Zerox equals y.Greater than zerox is greater than y.
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)