LocalDateTime.CompareTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CompareTo(Object) | |
| CompareTo(IChronoLocalDateTime) |
Compares this date-time to another date-time. |
CompareTo(Object)
public int CompareTo(Java.Lang.Object obj);
abstract member CompareTo : Java.Lang.Object -> int
override this.CompareTo : Java.Lang.Object -> int
Parameters
- obj
- Object
Returns
Implements
Applies to
CompareTo(IChronoLocalDateTime)
Compares this date-time to another date-time.
[Android.Runtime.Register("compareTo", "(Ljava/time/chrono/ChronoLocalDateTime;)I", "", ApiSince=26)]
public int CompareTo(Java.Time.Chrono.IChronoLocalDateTime? other);
[<Android.Runtime.Register("compareTo", "(Ljava/time/chrono/ChronoLocalDateTime;)I", "", ApiSince=26)>]
abstract member CompareTo : Java.Time.Chrono.IChronoLocalDateTime -> int
override this.CompareTo : Java.Time.Chrono.IChronoLocalDateTime -> int
Parameters
- other
- IChronoLocalDateTime
the other date-time to compare to, not null
Returns
the comparator value, that is the comparison of this local date-time with the other local date-time and this chronology with the other chronology, in order, returning the first non-zero result, and otherwise returning zero
Implements
- Attributes
Remarks
To be added.
Java reference for java.time.LocalDateTime.compareTo.