Checks if this DateTime is in the same year as other.
other
bool isAtSameYearAs(DateTime other) => year == other.year;