Combines this year with a day-of-year to create a LocalDate.
Checks if this year is equal 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.
Gets the year value.
Checks if the year is a leap year, according to the ISO proleptic calendar system rules.
Gets the length of this year in days.
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 number of years subtracted.
Returns a copy of this year with the specified amount added.
Returns a copy of this year with the specified amount added.
Returns a copy of this Year with the specified number of years 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 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
isChecks if the year is a leap year, according to the ISO proleptic calendar system rules.
Static
nowStatic
ofStatic
parseObtains an instance of Year from a text string such as 2007.
Optional
formatter: DateTimeFormatter
A year in the ISO-8601 calendar system, such as 2007.
See java.time.Year for full documentation