Sdílet prostřednictvím


IChronoLocalDateTime.IsAfter(IChronoLocalDateTime) Method

Definition

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

[Android.Runtime.Register("isAfter", "(Ljava/time/chrono/ChronoLocalDateTime;)Z", "GetIsAfter_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 IsAfter (Java.Time.Chrono.IChronoLocalDateTime? other);
[<Android.Runtime.Register("isAfter", "(Ljava/time/chrono/ChronoLocalDateTime;)Z", "GetIsAfter_Ljava_time_chrono_ChronoLocalDateTime_Handler:Java.Time.Chrono.IChronoLocalDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsAfter : Java.Time.Chrono.IChronoLocalDateTime -> bool
override this.IsAfter : Java.Time.Chrono.IChronoLocalDateTime -> bool

Parameters

other
IChronoLocalDateTime

the other date-time to compare to, not null

Returns

true if this is after the specified date-time

Attributes

Remarks

Checks if this date-time is after 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.isAfter(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