Language

OffsetDateTime.IsBefore(OffsetDateTime) メソッド

定義

この日時のインスタントが、指定した日時の前にあるかどうかを確認します。

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

パラメーター

other
OffsetDateTime

比較するもう 1 つの日時 (null ではない)

戻り値

指定した日時の瞬間より前の場合は true

属性

注釈

この日時のインスタントが、指定した日時の前にあるかどうかを確認します。 このメソッドは、日時の瞬間のみを比較するという点で compareTo(java.time.OffsetDateTime) の比較とは異なります。 これは、dateTime1.toInstant().isBefore(dateTime2.toInstant())) の使用と同じです。

Javaリファレンス。

適用対象