IChronoZonedDateTime.IsAfter(IChronoZonedDateTime) 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 the instant of this date-time is after that of the specified date-time.
[Android.Runtime.Register("isAfter", "(Ljava/time/chrono/ChronoZonedDateTime;)Z", "GetIsAfter_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 IsAfter(Java.Time.Chrono.IChronoZonedDateTime? other);
[<Android.Runtime.Register("isAfter", "(Ljava/time/chrono/ChronoZonedDateTime;)Z", "GetIsAfter_Ljava_time_chrono_ChronoZonedDateTime_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsAfter : Java.Time.Chrono.IChronoZonedDateTime -> bool
override this.IsAfter : Java.Time.Chrono.IChronoZonedDateTime -> bool
Parameters
- other
- IChronoZonedDateTime
the other date-time to compare to, not null
Returns
true if this is after the specified date-time
- Attributes
Remarks
Checks if the instant of this date-time is after that of the specified date-time. This method differs from the comparison in compareTo(java.time.chrono.ChronoZonedDateTime<?>) in that it only compares the instant of the date-time. This is equivalent to using dateTime1.toInstant().isAfter(dateTime2.toInstant());. This default implementation performs the comparison based on the epoch-second and nano-of-second.
Java reference for java.time.chrono.ChronoZonedDateTime.isAfter.