Calendar.CompareTo(Calendar) Calendar.CompareTo(Calendar) Method

Definition

Compares the time represented by this Calendar to that represented by the given Calendar.

[Android.Runtime.Register("compareTo", "(Ljava/util/Calendar;)I", "GetCompareTo_Ljava_util_Calendar_Handler")]
public virtual int CompareTo (Java.Util.Calendar anotherCalendar);
abstract member CompareTo : Java.Util.Calendar -> int
override this.CompareTo : Java.Util.Calendar -> int

Parameters

anotherCalendar
Calendar Calendar

Returns

Exceptions

if the argument is null.

if the argument does not include a valid time value.

Remarks

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