Package | Description |
---|---|
java.time |
The main API for dates, times, instants, and durations.
|
java.time.calendar |
Support for calendar systems other than the default ISO.
|
java.time.temporal |
Access to date and time using fields and units, additional value type classes and
base support for calendar systems other than the default ISO.
|
Modifier and Type | Method and Description |
---|---|
Era<ISOChrono> |
LocalDate.getEra()
Gets the era applicable at this date.
|
Modifier and Type | Field and Description |
---|---|
static Era<HijrahChrono> |
HijrahChrono.ERA_AH
The singleton instance for the current era - Hijrah - which has the value 1.
|
static Era<ThaiBuddhistChrono> |
ThaiBuddhistChrono.ERA_BE
The singleton instance for the current era - Buddhist - which has the value 1.
|
static Era<HijrahChrono> |
HijrahChrono.ERA_BEFORE_AH
The singleton instance for the era before the current one - Before Hijrah -
which has the value 0.
|
static Era<ThaiBuddhistChrono> |
ThaiBuddhistChrono.ERA_BEFORE_BE
The singleton instance for the era before the current one - Before Buddhist -
which has the value 0.
|
static Era<MinguoChrono> |
MinguoChrono.ERA_BEFORE_ROC
The singleton instance for the era BEFORE_ROC.
|
static Era<JapaneseChrono> |
JapaneseChrono.ERA_HEISEI
The singleton instance for the Heisei era (1989-01-08 - current)
which has the value 2.
|
static Era<JapaneseChrono> |
JapaneseChrono.ERA_MEIJI
The singleton instance for the Meiji era (1868-09-08 - 1912-07-29)
which has the value -1.
|
static Era<MinguoChrono> |
MinguoChrono.ERA_ROC
The singleton instance for the era ROC.
|
static Era<JapaneseChrono> |
JapaneseChrono.ERA_SEIREKI
The singleton instance for the before Meiji era ( - 1868-09-07)
which has the value -999.
|
static Era<JapaneseChrono> |
JapaneseChrono.ERA_SHOWA
The singleton instance for the Showa era (1926-12-25 - 1989-01-07)
which has the value 1.
|
static Era<JapaneseChrono> |
JapaneseChrono.ERA_TAISHO
The singleton instance for the Taisho era (1912-07-30 - 1926-12-24)
which has the value 0.
|
Modifier and Type | Method and Description |
---|---|
Era<MinguoChrono> |
MinguoChrono.eraOf(int eraValue) |
Era<ThaiBuddhistChrono> |
ThaiBuddhistChrono.eraOf(int eraValue) |
Era<JapaneseChrono> |
JapaneseChrono.eraOf(int eraValue)
Returns the calendar system era object from the given numeric value.
|
Era<HijrahChrono> |
HijrahChrono.eraOf(int eraValue) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Era<MinguoChrono>> |
MinguoChrono.eras() |
java.util.List<Era<ThaiBuddhistChrono>> |
ThaiBuddhistChrono.eras() |
java.util.List<Era<JapaneseChrono>> |
JapaneseChrono.eras() |
java.util.List<Era<HijrahChrono>> |
HijrahChrono.eras() |
Modifier and Type | Method and Description |
---|---|
ChronoLocalDate<JapaneseChrono> |
JapaneseChrono.date(Era<JapaneseChrono> era,
int yearOfEra,
int month,
int dayOfMonth) |
int |
HijrahChrono.prolepticYear(Era<HijrahChrono> era,
int yearOfEra) |
int |
JapaneseChrono.prolepticYear(Era<JapaneseChrono> era,
int yearOfEra) |
int |
MinguoChrono.prolepticYear(Era<MinguoChrono> era,
int yearOfEra) |
int |
ThaiBuddhistChrono.prolepticYear(Era<ThaiBuddhistChrono> era,
int yearOfEra) |
Modifier and Type | Field and Description |
---|---|
static Era<ISOChrono> |
ISOChrono.ERA_BCE
The singleton instance for the era BCE - 'Before Current Era'.
|
static Era<ISOChrono> |
ISOChrono.ERA_CE
The singleton instance for the era CE - 'Current Era'.
|
Modifier and Type | Method and Description |
---|---|
abstract Era<C> |
Chrono.eraOf(int eraValue)
Creates the chronology era object from the numeric value.
|
Era<ISOChrono> |
ISOChrono.eraOf(int eraValue) |
default Era<C> |
ChronoLocalDate.getEra()
Gets the era, as defined by the chronology.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<Era<C>> |
Chrono.eras()
Gets the list of eras for the chronology.
|
java.util.List<Era<ISOChrono>> |
ISOChrono.eras() |
Modifier and Type | Method and Description |
---|---|
ChronoLocalDate<C> |
Chrono.date(Era<C> era,
int yearOfEra,
int month,
int dayOfMonth)
Obtains a local date in this chronology from the era, year-of-era,
month-of-year and day-of-month fields.
|
LocalDate |
ISOChrono.date(Era<ISOChrono> era,
int yearOfEra,
int month,
int dayOfMonth)
Obtains an ISO local date from the era, year-of-era, month-of-year
and day-of-month fields.
|
ChronoLocalDate<C> |
Chrono.dateYearDay(Era<C> era,
int yearOfEra,
int dayOfYear)
Obtains a local date in this chronology from the era, year-of-era and
day-of-year fields.
|
LocalDate |
ISOChrono.dateYearDay(Era<ISOChrono> era,
int yearOfEra,
int dayOfYear)
Obtains an ISO local date from the era, year-of-era and day-of-year fields.
|
abstract int |
Chrono.prolepticYear(Era<C> era,
int yearOfEra)
Calculates the proleptic-year given the era and year-of-era.
|
int |
ISOChrono.prolepticYear(Era<ISOChrono> era,
int yearOfEra) |