Compares this year to another year.
Formats this year using the specified formatter.
Gets the value of the specified field from this year as an int.
Gets the value of the specified field from this year as a long.
Checks if this year is after the specified year.
Checks if this year is before the specified year.
Checks if the specified field is supported.
Checks if the specified unit is supported.
Checks if the month-day is valid for this year.
Returns a copy of this year with the specified amount subtracted.
Returns a copy of this year with the specified amount subtracted.
Returns a copy of this year with the specified amount added.
Returns a copy of this year with the specified amount added.
Queries this year using the specified query.
Gets the range of valid values for the specified field.
Calculates the amount of time until another year in terms of the specified unit.
Returns an adjusted copy of this year.
Returns a copy of this year with the specified field set to a new value.
Static
fromObtains an instance of Year from a temporal object.
Static
isStatic
nowStatic
ofStatic
parseObtains an instance of Year from a text string such as 2007.
Optional
formatter: DateTimeFormatterGenerated using TypeDoc
A year in the ISO-8601 calendar system, such as 2007.
See java.time.Year for full documentation