Language

IChronoZonedDateTime.IsEqual(IChronoZonedDateTime) Method

Definition

Checks if the instant of this date-time is equal to that of the specified date-time.

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

Parameters

other
IChronoZonedDateTime

the other date-time to compare to, not null

Returns

true if the instant equals the instant of the specified date-time

Attributes

Remarks

Checks if the instant of this date-time is equal to that of the specified date-time. This method differs from the comparison in compareTo(java.time.chrono.ChronoZonedDateTime<?>) and equals(java.lang.Object) in that it only compares the instant of the date-time. This is equivalent to using dateTime1.toInstant().equals(dateTime2.toInstant());. This default implementation performs the comparison based on the epoch-second and nano-of-second.

Java reference for java.time.chrono.ChronoZonedDateTime.isEqual.

Applies to