year property

int year

Gets the year of this zoned date and time. This returns the 'absolute year', so, for the ISO calendar, a value of 0 means 1 BC, for example.

Implementation

int get year => _offsetDateTime.year;