Type Property

NSYearCalendarUnit

Specifies the year unit.

Declaration

static var NSYearCalendarUnit: NSCalendar.Unit { get }

Discussion

The corresponding value is an NSInteger. Equal to kCFCalendarUnitYear.

See Also

Deprecated

static var NSEraCalendarUnit: NSCalendar.Unit

Specifies the era unit.

Deprecated
static var NSMonthCalendarUnit: NSCalendar.Unit

Specifies the month unit.

Deprecated
static var NSDayCalendarUnit: NSCalendar.Unit

Specifies the day unit.

Deprecated
static var NSHourCalendarUnit: NSCalendar.Unit

Specifies the hour unit.

Deprecated
static var NSMinuteCalendarUnit: NSCalendar.Unit

Specifies the minute unit.

Deprecated
static var NSSecondCalendarUnit: NSCalendar.Unit

Specifies the second unit.

Deprecated
static var NSWeekCalendarUnit: NSCalendar.Unit

Specifies the week unit.

Deprecated
static var NSWeekdayCalendarUnit: NSCalendar.Unit

Specifies the weekday unit.

Deprecated
static var NSWeekdayOrdinalCalendarUnit: NSCalendar.Unit

Specifies the ordinal weekday unit.

Deprecated
static var NSQuarterCalendarUnit: NSCalendar.Unit

Specifies the quarter of the calendar as a second. In macOS 10.6 and earlier this was defined as equal to quarter. In macOS 10.7 and later it is defined as (1 << 20).

Deprecated
static var NSWeekOfMonthCalendarUnit: NSCalendar.Unit

Specifies the original week of a month calendar unit.

Deprecated
static var NSWeekOfYearCalendarUnit: NSCalendar.Unit

Specifies the original week of the year calendar unit.

Deprecated
static var NSYearForWeekOfYearCalendarUnit: NSCalendar.Unit

Specifies the year when the calendar is being interpreted as a week-based calendar.

Deprecated
static var NSCalendarCalendarUnit: NSCalendar.Unit

Specifies the calendar of the calendar.

Deprecated
static var NSTimeZoneCalendarUnit: NSCalendar.Unit

Specifies the time zone of the calendar as an NSTimeZone.

Deprecated