Instance Property

year

A year or count of years.

Declaration

var year: Int? { get set }

Discussion

See Also

Accessing Months and Years

var era: Int?

An era or count of eras.

var yearForWeekOfYear: Int?

The year corresponding to a week-counting week.

var quarter: Int?

A quarter or count of quarters.

var month: Int?

A month or count of months.

var isLeapMonth: Bool?

Set to true if these components represent a leap month.