Calendar.Before(Object) Method

Definition

Compares the time field records.

[Android.Runtime.Register("before", "(Ljava/lang/Object;)Z", "GetBefore_Ljava_lang_Object_Handler", ApiSince=24)]
public virtual bool Before (Java.Lang.Object? when);
[<Android.Runtime.Register("before", "(Ljava/lang/Object;)Z", "GetBefore_Ljava_lang_Object_Handler", ApiSince=24)>]
abstract member Before : Java.Lang.Object -> bool
override this.Before : Java.Lang.Object -> bool

Parameters

when
Object

the Calendar to be compared with this Calendar.

Returns

true if the current time of this Calendar is before the time of Calendar when; false otherwise.

Attributes

Remarks

Compares the time field records. Equivalent to comparing result of conversion to UTC.

Java documentation for android.icu.util.Calendar.before(java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to