Calendar.CompareTo(Calendar) Method

Definition

Compares the times (in millis) represented by two Calendar objects.

[Android.Runtime.Register("compareTo", "(Landroid/icu/util/Calendar;)I", "GetCompareTo_Landroid_icu_util_Calendar_Handler", ApiSince=24)]
public virtual int CompareTo (Android.Icu.Util.Calendar? that);
[<Android.Runtime.Register("compareTo", "(Landroid/icu/util/Calendar;)I", "GetCompareTo_Landroid_icu_util_Calendar_Handler", ApiSince=24)>]
abstract member CompareTo : Android.Icu.Util.Calendar -> int
override this.CompareTo : Android.Icu.Util.Calendar -> int

Parameters

that
Calendar

the Calendar to compare to this.

Returns

0 if the time represented by this Calendar is equal to the time represented by that Calendar, a value less than 0 if the time represented by this is before the time represented by that, and a value greater than 0 if the time represented by this is after the time represented by that.

Attributes

Remarks

Compares the times (in millis) represented by two Calendar objects.

Java documentation for android.icu.util.Calendar.compareTo(android.icu.util.Calendar).

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