Share via


Calendar.GetMaximum(CalendarField) Method

Definition

Returns the maximum value for the given calendar field of this Calendar instance.

[Android.Runtime.Register("getMaximum", "(I)I", "GetGetMaximum_IHandler")]
public abstract int GetMaximum (Java.Util.CalendarField field);
[<Android.Runtime.Register("getMaximum", "(I)I", "GetGetMaximum_IHandler")>]
abstract member GetMaximum : Java.Util.CalendarField -> int

Parameters

field
CalendarField

the calendar field.

Returns

the maximum value for the given calendar field.

Attributes

Remarks

Returns the maximum value for the given calendar field of this Calendar instance. The maximum value is defined as the largest value returned by the #get(int) get method for any possible time value. The maximum value depends on calendar system specific parameters of the instance.

Java documentation for java.util.Calendar.getMaximum(.*int).

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