Share via


Calendar.Before(Object) Method

Definition

Returns whether this Calendar represents a time before the time represented by the specified Object.

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

Parameters

when
Object

the Object to be compared

Returns

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

Attributes

Exceptions

if the time is not set and the time cannot be computed from the current field values.

Remarks

Java documentation for java.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