The main API for dates, times, instants, and durations.
-
Obtains an instance of Year
from a temporal object.
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.
Obtains the current year from the system clock in the default time-zone.
Obtains the current year from the specified clock.
Obtains the current year from the system clock in the specified time-zone.
Obtains an instance of Year
.
Obtains an instance of Year
from a text string such as 2007
.
Obtains an instance of Year
from a text string using a specific formatter.
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.
Returns an adjusted copy of this year.
Returns a copy of this year with the specified field set to a new value.
int
Compares this year to another year.
boolean
Checks if this year is after the specified year.
boolean
Checks if this year is before the specified year.