Calendrical units such as year, month, day and hour.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Calendar units may be used as a bit mask to specify a combination of units. Values in this enumeration are equal to the corresponding constants in
Specifying Years and Months
Specifying Weeks and Days
Specifying Hours, Minutes, and Seconds
Specifying Calendars and Time Zones
Specifies the quarter of the calendar as a
kCFCalendarUnitSecond. In macOS 10.6 and earlier this was defined as equal to
kCFCalendarUnitQuarter. In macOS 10.7 and later it is defined as
(1 << 20).
Getting Calendar Information
The locale of the receiver.
Returns, for a given absolute time, the ordinal number of a smaller calendar unit (such as a day) within a specified larger calendar unit (such as a week).
Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time.