[This is preliminary documentation and is subject to change.]
Indicates whether this date/time is earlier, later or the same as another one.

C# | Visual Basic | Visual C++ |
public int CompareTo( ZonedDateTime other )
Public Function CompareTo ( _ other As ZonedDateTime _ ) As Integer
public: virtual int CompareTo( ZonedDateTime other ) sealed

- other (ZonedDateTime)
- The other zoned date/time to compare this one with

A value less than zero if the instant represented by this zoned date/time is earlier than the one in
other; zero if the instant is the same as the one in other;
a value greater than zero if the instant is later than the one in other.

This is purely done in terms of the instant represented; the calendar system and time zone are ignored.
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)