Specifies the weekday unit.
Deprecated
Use weekday
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
static var NSWeekdayCalendarUnit: NSCalendar.Unit { get }
Discussion
The corresponding value is an k
. Equal to k
. The weekday units are the numbers 1 through N (where for the Gregorian calendar N=7 and 1 is Sunday).