Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Method | Description |
---|---|---|
Year |
Year.minus(PeriodProvider periodProvider) |
Returns a copy of this
Year with the specified period subtracted. |
Year |
Year.minusYears(long years) |
Returns a copy of this Year with the specified number of years subtracted.
|
Year |
Year.next() |
Returns the next year.
|
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 |
Year.now(Clock clock) |
Obtains the current year from the specified clock.
|
static Year |
Year.of(int isoYear) |
Obtains an instance of
Year . |
static Year |
Year.of(Calendrical calendrical) |
Obtains an instance of
Year from a calendrical. |
Year |
Year.plus(PeriodProvider periodProvider) |
Returns a copy of this
Year with the specified period added. |
Year |
Year.plusYears(long years) |
Returns a copy of this Year with the specified number of years added.
|
Year |
Year.previous() |
Returns the previous year.
|
Year |
Year.previousLeap() |
Returns the previous leap year before the current year.
|
Year |
Clock.year() |
Gets the current year.
|
Modifier and Type | Method | Description |
---|---|---|
int |
Year.compareTo(Year other) |
Compares this year to another year.
|
boolean |
Year.isAfter(Year other) |
Is this year after the specified year.
|
boolean |
Year.isBefore(Year other) |
Is this year before the specified year.
|
YearMonth |
YearMonth.with(Year year) |
Returns a copy of this YearMonth with the year altered.
|
Copyright © 2019. All rights reserved.