Uses of Class
javax.time.calendar.Year
Packages that use Year
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes to implement time-zones and their rules.
-
Uses of Year in javax.time.calendar
Methods in javax.time.calendar that return YearModifier and TypeMethodDescriptionYear.minus
(PeriodProvider periodProvider) Returns a copy of thisYear
with the specified period subtracted.Year.minusYears
(long years) Returns a copy of this Year with the specified number of years subtracted.Year.next()
Returns the next year.Year.nextLeap()
Returns the next leap year after the current year.static Year
Year.now()
Obtains the current year from the system clock in the default time-zone.static Year
Obtains the current year from the specified clock.static Year
Year.of
(int isoYear) Obtains an instance ofYear
.static Year
Year.of
(Calendrical calendrical) Obtains an instance ofYear
from a calendrical.Year.plus
(PeriodProvider periodProvider) Returns a copy of thisYear
with the specified period added.Year.plusYears
(long years) Returns a copy of this Year with the specified number of years added.Year.previous()
Returns the previous year.Year.previousLeap()
Returns the previous leap year before the current year.Clock.year()
Gets the current year.Methods in javax.time.calendar with parameters of type YearModifier and TypeMethodDescriptionint
Compares this year to another year.boolean
Is this year after the specified year.boolean
Is this year before the specified year.Returns a copy of this YearMonth with the year altered. -
Uses of Year in javax.time.calendar.zone
Fields in javax.time.calendar.zone declared as YearModifier and TypeFieldDescription(package private) Year
TZDBZoneRulesCompiler.TZDBZone.year
The year of the cutover.Fields in javax.time.calendar.zone with type parameters of type YearModifier and TypeFieldDescriptionprivate final ConcurrentMap
<Year, ZoneOffsetTransition[]> StandardZoneRules.lastRulesCache
The map of recent transitions.