Returns the range of absolute time values that a smaller calendar component (such as a day) can take on in a larger calendar component (such as a month) that includes a specified absolute time.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
The smaller calendar component.
The larger calendar component.
The absolute time for which the calculation is performed.
The range of absolute time values smaller can take on in larger at the time specified by date. Returns
nil if larger is not logically bigger than smaller in the calendar, or the given combination of components does not make sense (or is a computation which is undefined).
You can use this method to calculate, for example, the range the
day component can take on in the
month in which