ChronoZonedDateTime.TimeLineOrder 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.
Caution
Use 'Java.Time.Chrono.IChronoZonedDateTime.TimeLineOrder'. This class will be removed in a future release.
Gets a comparator that orders zoned date-times by their instant, without comparing their calendar systems.
[Android.Runtime.Register("timeLineOrder", "()Ljava/util/Comparator;", "", ApiSince=26)]
[System.Obsolete("Use 'Java.Time.Chrono.IChronoZonedDateTime.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.IChronoZonedDateTime.TimeLineOrder'. This class will be removed in a future release.")>]
static member TimeLineOrder : unit -> Java.Util.IComparator
Returns
A comparator that compares epoch seconds first, then nanoseconds within the second.
- Attributes
Remarks
The comparator compares only the instant. Date-times at the same instant compare as equal, even if their calendar systems differ. Unlike CompareTo(IChronoZonedDateTime), it does not use the local date-time, time-zone ID, or chronology to break a tie.
This legacy method exposes the Java static interface method. Use TimeLineOrder() instead.
Java reference for java.time.chrono.ChronoZonedDateTime.timeLineOrder.