CFCalendarGetMaximumRangeOfUnit(_:_:)
Returns the maximum range limits of the values that a specified unit can take on in a given calendar.
Declaration
func CFCalendarGetMaximumRangeOfUnit(_ calendar: CFCalendar!, _ unit: CFCalendarUnit) -> CFRangeParameters
- calendar:
The calendar to examine.
- unit:
A calendar unit. For valid values see Cfcalendarunit.
Return Value
The maximum range limits of the values that the specified unit can take on in calendar. For example, in the Gregorian calendar the maximum ranges for the Day unit is 1-31.