maximumRange(of:)
Returns the maximum range limits of the values that a given unit can take on.
Declaration
func maximumRange(of unit: NSCalendar.Unit) -> NSRangeParameters
- unit:
The unit for which the maximum range is returned.
Return Value
The maximum range limits of the values that the unit specified by unit can take on in the receiver.
Discussion
As an example, in the Gregorian calendar the maximum range of values for the Day unit is 1-31.