OffsetTime.IsEqual(OffsetTime) Method

Definition

Checks if the instant of this OffsetTime is equal to that of the specified time applying both times to a common date.

[Android.Runtime.Register("isEqual", "(Ljava/time/OffsetTime;)Z", "", ApiSince=26)]
public bool IsEqual(Java.Time.OffsetTime? other);
[<Android.Runtime.Register("isEqual", "(Ljava/time/OffsetTime;)Z", "", ApiSince=26)>]
member this.IsEqual : Java.Time.OffsetTime -> bool

Parameters

other
OffsetTime

the other time to compare to, not null

Returns

true if this is equal to the instant of the specified time

Attributes

Remarks

Checks if the instant of this OffsetTime is equal to that of the specified time applying both times to a common date. This method differs from the comparison in compareTo(java.time.OffsetTime) and equals(java.lang.Object) in that it only compares the instant of the time. This is equivalent to converting both times to an instant using the same date and comparing the instants.

Java reference for java.time.OffsetTime.isEqual.

Applies to