---
title: year
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nscalendar/unit/year
---

# year

Identifier for the year unit.

## Declaration

```swift
static var year: NSCalendar.Unit { get }
```

## Discussion

Discussion The corresponding value is an NSInteger. Equal to kCFCalendarUnitYear.

## See Also

### Specifying Years and Months

- [era](foundation/nscalendar/unit/era.md)
- [yearForWeekOfYear](foundation/nscalendar/unit/yearforweekofyear.md)
- [quarter](foundation/nscalendar/unit/quarter.md)
- [month](foundation/nscalendar/unit/month.md)
- [isLeapMonth](foundation/nscalendar/unit/isleapmonth.md)
