Calendar.GetLeastMaximum(CalendarField) Method

Definition

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

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

Parameters

field
CalendarField

the calendar field.

Returns

the lowest maximum value for the given calendar field.

Attributes

Remarks

Returns the lowest maximum value for the given calendar field of this Calendar instance. The lowest maximum value is defined as the smallest value returned by #getActualMaximum(int) for any possible time value. The least maximum value depends on calendar system specific parameters of the instance. For example, a Calendar for the Gregorian calendar system returns 28 for the DAY_OF_MONTH field, because the 28th is the last day of the shortest month of this calendar, February in a common year.

Java documentation for java.util.Calendar.getLeastMaximum(.*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