IChronoZonedDateTime.IsBefore(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 before that of the specified date-time.
[Android.Runtime.Register("isBefore", "(Ljava/time/chrono/ChronoZonedDateTime;)Z", "GetIsBefore_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 IsBefore(Java.Time.Chrono.IChronoZonedDateTime? other);
[<Android.Runtime.Register("isBefore", "(Ljava/time/chrono/ChronoZonedDateTime;)Z", "GetIsBefore_Ljava_time_chrono_ChronoZonedDateTime_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsBefore : Java.Time.Chrono.IChronoZonedDateTime -> bool
override this.IsBefore : Java.Time.Chrono.IChronoZonedDateTime -> bool
Parameters
- other
- IChronoZonedDateTime
the other date-time to compare to, not null
Returns
true if this point is before the specified date-time
- Attributes
Remarks
Checks if the instant of this date-time is before 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().isBefore(dateTime2.toInstant());. This default implementation performs the comparison based on the epoch-second and nano-of-second.
Java reference for java.time.chrono.ChronoZonedDateTime.isBefore.