checked
Creates a Year instance checking that the year is between 1 and 9999 inclusive.
It throws a DateException if the year is not in the 1..9999 range.
Creates a Year instance checking that the year is between 1 and 9999 inclusive.
It throws a DateException if the year is not in the 1..9999 range.