Share via


IChronoLocalDateTime.IsEqual(IChronoLocalDateTime) Method

Definition

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

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

Parameters

other
IChronoLocalDateTime

the other date-time to compare to, not null

Returns

true if the underlying date-time is equal to the specified date-time on the timeline

Attributes

Remarks

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

This method differs from the comparison in #compareTo in that it only compares the underlying date and time and not the chronology. This allows date-times 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.isEqual(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