Specifies the hour unit.
Deprecated
Use NSCalendar
instead.
SDKs
- iOS 2.0–8.0Deprecated
- macOS 10.4–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
Framework
- Foundation
Declaration
NSHourCalendarUnit = NSCalendarUnitHour
Discussion
The corresponding value is an NSInteger
. Equal to k
.