Contents

minimumRange(of:)

Returns the minimum range limits of the values that a given unit can take on.

Declaration

func minimumRange(of unit: NSCalendar.Unit) -> NSRange

Parameters

  • unit:

    The unit for which the maximum range is returned.

Return Value

The minimum 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 minimum range of values for the Day unit is 1-28.

See Also

Getting Calendar Information