Instance Property

year

The number of years.

Declaration

@property NSInteger year;

Discussion

This value is interpreted in the context of the calendar with which it is used—see Calendars, Date Components, and Calendar Units in Date and Time Programming Guide.

See Also

Accessing Years and Months

era

The number of eras.

yearForWeekOfYear

The ISO 8601 week-numbering year.

quarter

The number of quarters.

month

The number of months.

leapMonth

A Boolean value that indicates whether the month is a leap month.