Package | Description |
---|---|
javax.time.i18n |
Provides classes representing dates and times in alternate calendar systems.
|
Modifier and Type | Method | Description |
---|---|---|
static HistoricDate |
HistoricDate.of(int historicYear,
MonthOfYear monthOfYear,
int dayOfMonth) |
Obtains an instance of
LocalDate from a year, month and day
using the standard cutover of 1582-10-15. |
static HistoricDate |
HistoricDate.of(Calendrical calendrical) |
Obtains an instance of
HistoricDate from a calendrical. |
static HistoricDate |
HistoricDate.of(LocalDate cutover,
int historicYear,
MonthOfYear monthOfYear,
int dayOfMonth) |
Obtains an instance of
LocalDate from a year, month and day
specifying the cutover date to use. |
HistoricDate |
HistoricDate.plusDays(int days) |
Returns a copy of this date with the specified number of days added.
|
HistoricDate |
HistoricDate.plusMonths(int months) |
Returns a copy of this date with the specified number of months added.
|
HistoricDate |
HistoricDate.plusYears(int years) |
Returns a copy of this date with the specified number of years added.
|
HistoricDate |
HistoricDate.withDayOfMonth(int dayOfMonth) |
Returns a copy of this date with the day-of-month value altered.
|
HistoricDate |
HistoricDate.withDayOfYear(int dayOfYear) |
Returns a copy of this date with the day-of-year value altered.
|
HistoricDate |
HistoricDate.withMonthOfYear(MonthOfYear monthOfYear) |
Returns a copy of this date with the month-of-year value altered.
|
HistoricDate |
HistoricDate.withYear(int historicYear) |
Returns a copy of this date with the year value altered.
|
Modifier and Type | Method | Description |
---|---|---|
static CalendricalRule<HistoricDate> |
HistoricDate.rule() |
Gets the field rule for
HistoricDate . |
Modifier and Type | Method | Description |
---|---|---|
int |
HistoricDate.compareTo(HistoricDate otherDate) |
Compares this date to the specified date.
|
boolean |
HistoricDate.isAfter(HistoricDate otherDate) |
Checks is this date is after the specified date.
|
boolean |
HistoricDate.isBefore(HistoricDate otherDate) |
Checks is this date is before the specified date.
|
Copyright © 2019. All rights reserved.