Instance Property


A year or count of years.


var year: Int? { get set }


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.