Compartilhar via


IChronoLocalDateTime.IsBefore(IChronoLocalDateTime) Method

Definition

Checks if this date-time is before the specified date-time ignoring the chronology.

[Android.Runtime.Register("isBefore", "(Ljava/time/chrono/ChronoLocalDateTime;)Z", "GetIsBefore_Ljava_time_chrono_ChronoLocalDateTime_Handler:Java.Time.Chrono.IChronoLocalDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual bool IsBefore (Java.Time.Chrono.IChronoLocalDateTime? other);
[<Android.Runtime.Register("isBefore", "(Ljava/time/chrono/ChronoLocalDateTime;)Z", "GetIsBefore_Ljava_time_chrono_ChronoLocalDateTime_Handler:Java.Time.Chrono.IChronoLocalDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsBefore : Java.Time.Chrono.IChronoLocalDateTime -> bool
override this.IsBefore : Java.Time.Chrono.IChronoLocalDateTime -> bool

Parameters

other
IChronoLocalDateTime

the other date-time to compare to, not null

Returns

true if this is before the specified date-time

Attributes

Remarks

Checks if this date-time is before the specified date-time ignoring the chronology.

This method 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 time-line position.

This default implementation performs the comparison based on the epoch-day and nano-of-day.

Java documentation for java.time.chrono.ChronoLocalDateTime.isBefore(java.time.chrono.ChronoLocalDateTime<?>).

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