year property

  1. @override
int get year
override

The year.

The year field uses astronomical year numbering. This is based on CE / AD and is the same for year 1 onwards. Unlike CE / AD, it includes a year zero and may be negative. Some examples:

CE / BCE Astronomical
2025 CE 2025
1066 CE 1066
1 CE 1
1 BCE 0
2 BCE -1
480 BCE -479

Implementation

@override
int get year => date.year;