Returns the year of this DateTime.
Call has_year before, to avoid warnings.
a DateTime
The year of this DateTime