---
title: "CFCalendarGetMinimumRangeOfUnit(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfcalendargetminimumrangeofunit(_:_:)"
---

# CFCalendarGetMinimumRangeOfUnit(_:_:)

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

## Declaration

```swift
func CFCalendarGetMinimumRangeOfUnit(_ calendar: CFCalendar!, _ unit: CFCalendarUnit) -> CFRange
```

## Parameters

- `calendar`: The calendar to examine.
- `unit`: A calendar unit. For valid values see doc://com.apple.corefoundation/documentation/CoreFoundation/CFCalendarUnit.

## Return Value

Return Value The minimum range limits of the values that the specified unit can take on in calendar. For example, in the Gregorian calendar the minimum ranges for the Day unit is 1-28.

## See Also

### Getting Ranges of Units

- [CFCalendarGetRangeOfUnit(_:_:_:_:)](corefoundation/cfcalendargetrangeofunit(_:_:_:_:).md)
- [CFCalendarGetOrdinalityOfUnit(_:_:_:_:)](corefoundation/cfcalendargetordinalityofunit(_:_:_:_:).md)
- [CFCalendarGetTimeRangeOfUnit(_:_:_:_:_:)](corefoundation/cfcalendargettimerangeofunit(_:_:_:_:_:).md)
- [CFCalendarGetMaximumRangeOfUnit(_:_:)](corefoundation/cfcalendargetmaximumrangeofunit(_:_:).md)
