LocalDateTime.IsBefore(IChronoLocalDateTime) Method

Definition

Checks if this date-time is before the specified date-time.

[Android.Runtime.Register("isBefore", "(Ljava/time/chrono/ChronoLocalDateTime;)Z", "", ApiSince=26)]
public bool IsBefore(Java.Time.Chrono.IChronoLocalDateTime? other);
[<Android.Runtime.Register("isBefore", "(Ljava/time/chrono/ChronoLocalDateTime;)Z", "", ApiSince=26)>]
abstract member IsBefore : Java.Time.Chrono.IChronoLocalDateTime -> bool
override this.IsBefore : Java.Time.Chrono.IChronoLocalDateTime -> bool

Parameters

other
IChronoLocalDateTime

the other date-time to compare to, not null

Returns

true if this date-time is before the specified date-time

Implements

Attributes

Remarks

Checks if this date-time is before the specified date-time. This checks to see if this date-time represents a point on the local time-line before the other date-time. This method only considers the position of the two date-times on the local time-line. It does not take into account the chronology, or calendar system. This is different from the comparison in compareTo(ChronoLocalDateTime), but is the same approach as ChronoLocalDateTime.timeLineOrder().

Java reference for java.time.LocalDateTime.isBefore.

Applies to