Share via


GregorianCalendar.GetMaximum(CalendarField) Method

Definition

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

[Android.Runtime.Register("getMaximum", "(I)I", "GetGetMaximum_IHandler")]
public override int GetMaximum (Java.Util.CalendarField field);
[<Android.Runtime.Register("getMaximum", "(I)I", "GetGetMaximum_IHandler")>]
override this.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 GregorianCalendar instance. The maximum value is defined as the largest value returned by the Calendar#get(int) get method for any possible time value, taking into consideration the current values of the Calendar#getFirstDayOfWeek() getFirstDayOfWeek, Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek, #getGregorianChange() getGregorianChange and Calendar#getTimeZone() getTimeZone methods.

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