Share via


IChronoLocalDateTime.TimeLineOrder Method

Definition

Gets a comparator that compares ChronoLocalDateTime in time-line order ignoring the chronology.

[Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)]
public static Java.Util.IComparator? TimeLineOrder ();
[<Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)>]
static member TimeLineOrder : unit -> Java.Util.IComparator

Returns

a comparator that compares in time-line order ignoring the chronology

Attributes

Remarks

Gets a comparator that compares ChronoLocalDateTime in time-line order ignoring the chronology.

This comparator differs from the comparison in #compareTo in that it only compares the underlying date-time and not the chronology. This allows dates in different calendar systems to be compared based on the position of the date-time on the local time-line. The underlying comparison is equivalent to comparing the epoch-day and nano-of-day.

Java documentation for java.time.chrono.ChronoLocalDateTime.timeLineOrder().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to