IChronoZonedDateTime.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if this date-time is equal to another date-time.
[Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "GetEquals_Ljava_lang_Object_Handler:Java.Time.Chrono.IChronoZonedDateTimeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public bool Equals(Java.Lang.Object? obj);
[<Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "GetEquals_Ljava_lang_Object_Handler:Java.Time.Chrono.IChronoZonedDateTimeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Equals : Java.Lang.Object -> bool
Parameters
- obj
- Object
the object to check, null returns false
Returns
true if this is equal to the other date-time
- Attributes
Remarks
Checks if this date-time is equal to another date-time. The comparison is based on the local date-time, offset, zone and chronology. To compare for the same instant on the time-line, use IsEqual. Only objects of type ChronoZonedDateTime are compared, other types return false.
Java reference for java.time.chrono.ChronoZonedDateTime.equals.