Calendar.GetActualMinimum(CalendarField) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the minimum value that this field could have, given the current date.
[Android.Runtime.Register("getActualMinimum", "(I)I", "GetGetActualMinimum_IHandler", ApiSince=24)]
public virtual int GetActualMinimum (Android.Icu.Util.CalendarField field);
[<Android.Runtime.Register("getActualMinimum", "(I)I", "GetGetActualMinimum_IHandler", ApiSince=24)>]
abstract member GetActualMinimum : Android.Icu.Util.CalendarField -> int
override this.GetActualMinimum : Android.Icu.Util.CalendarField -> int
Parameters
- field
- CalendarField
the field whose actual minimum value is desired.
Returns
the minimum of the given field for the current date of this calendar
- Attributes
Remarks
Returns the minimum value that this field could have, given the current date. For most fields, this is the same as #getMinimum getMinimum
and #getGreatestMinimum getGreatestMinimum
. However, some fields, especially those related to week number, are more complicated.
For example, assume #getMinimalDaysInFirstWeek getMinimalDaysInFirstWeek
returns 4 and #getFirstDayOfWeek getFirstDayOfWeek
returns SUNDAY. If the first day of the month is Sunday, Monday, Tuesday, or Wednesday there will be four or more days in the first week, so it will be week number 1, and getActualMinimum(WEEK_OF_MONTH)
will return 1. However, if the first of the month is a Thursday, Friday, or Saturday, there are <em>not</em> four days in that week, so it is week number 0, and getActualMinimum(WEEK_OF_MONTH)
will return 0.
Java documentation for android.icu.util.Calendar.getActualMinimum(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.