ChronoLocalDateTime.TimeLineOrder Method

Definition

Caution

Use 'Java.Time.Chrono.IChronoLocalDateTime.TimeLineOrder'. This class will be removed in a future release.

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

[Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)]
[System.Obsolete("Use 'Java.Time.Chrono.IChronoLocalDateTime.TimeLineOrder'. This class will be removed in a future release.")]
public static Java.Util.IComparator? TimeLineOrder ();
[<Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)>]
[<System.Obsolete("Use 'Java.Time.Chrono.IChronoLocalDateTime.TimeLineOrder'. This class will be removed in a future release.")>]
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