Package | Description |
---|---|
java.time |
The main API for dates, times, instants, and durations.
|
java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
Modifier and Type | Method and Description |
---|---|
Era |
LocalDate.getEra()
Gets the era applicable at this date.
|
Modifier and Type | Field and Description |
---|---|
static Era |
HijrahChronology.ERA_AH
The singleton instance for the current era - Hijrah - which has the value 1.
|
static Era |
IsoChronology.ERA_BCE
The singleton instance for the era BCE - 'Before Current Era'.
|
static Era |
ThaiBuddhistChronology.ERA_BE
The singleton instance for the current era - Buddhist - which has the value 1.
|
static Era |
HijrahChronology.ERA_BEFORE_AH
The singleton instance for the era before the current one - Before Hijrah -
which has the value 0.
|
static Era |
ThaiBuddhistChronology.ERA_BEFORE_BE
The singleton instance for the era before the current one - Before Buddhist -
which has the value 0.
|
static Era |
MinguoChronology.ERA_BEFORE_ROC
The singleton instance for the era BEFORE_ROC.
|
static Era |
IsoChronology.ERA_CE
The singleton instance for the era CE - 'Current Era'.
|
static Era |
JapaneseChronology.ERA_HEISEI
The singleton instance for the Heisei era (1989-01-08 - current)
which has the value 2.
|
static Era |
JapaneseChronology.ERA_MEIJI
The singleton instance for the Meiji era (1868-09-08 - 1912-07-29)
which has the value -1.
|
static Era |
MinguoChronology.ERA_ROC
The singleton instance for the era ROC.
|
static Era |
JapaneseChronology.ERA_SEIREKI
The singleton instance for the before Meiji era ( - 1868-09-07)
which has the value -999.
|
static Era |
JapaneseChronology.ERA_SHOWA
The singleton instance for the Showa era (1926-12-25 - 1989-01-07)
which has the value 1.
|
static Era |
JapaneseChronology.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 |
---|---|
abstract Era |
Chronology.eraOf(int eraValue)
Creates the chronology era object from the numeric value.
|
Era |
IsoChronology.eraOf(int eraValue) |
Era |
ThaiBuddhistChronology.eraOf(int eraValue) |
Era |
JapaneseChronology.eraOf(int eraValue)
Returns the calendar system era object from the given numeric value.
|
Era |
MinguoChronology.eraOf(int eraValue) |
Era |
HijrahChronology.eraOf(int eraValue) |
Era |
JapaneseDate.getEra() |
default Era |
ChronoLocalDate.getEra()
Gets the era, as defined by the chronology.
|
Modifier and Type | Method and Description |
---|---|
abstract List<Era> |
Chronology.eras()
Gets the list of eras for the chronology.
|
List<Era> |
IsoChronology.eras() |
List<Era> |
ThaiBuddhistChronology.eras() |
List<Era> |
JapaneseChronology.eras() |
List<Era> |
MinguoChronology.eras() |
List<Era> |
HijrahChronology.eras() |
Modifier and Type | Method and Description |
---|---|
ChronoLocalDate |
Chronology.date(Era 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 |
IsoChronology.date(Era 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.
|
ThaiBuddhistDate |
ThaiBuddhistChronology.date(Era era,
int yearOfEra,
int month,
int dayOfMonth) |
JapaneseDate |
JapaneseChronology.date(Era era,
int yearOfEra,
int month,
int dayOfMonth) |
MinguoDate |
MinguoChronology.date(Era era,
int yearOfEra,
int month,
int dayOfMonth) |
HijrahDate |
HijrahChronology.date(Era era,
int yearOfEra,
int month,
int dayOfMonth) |
ChronoLocalDate |
Chronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear)
Obtains a local date in this chronology from the era, year-of-era and
day-of-year fields.
|
LocalDate |
IsoChronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear)
Obtains an ISO local date from the era, year-of-era and day-of-year fields.
|
ThaiBuddhistDate |
ThaiBuddhistChronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear) |
JapaneseDate |
JapaneseChronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear) |
MinguoDate |
MinguoChronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear) |
HijrahDate |
HijrahChronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear) |
static JapaneseDate |
JapaneseDate.of(Era era,
int yearOfEra,
int month,
int dayOfMonth)
Obtains a
JapaneseDate representing a date in the Japanese calendar
system from the era, year-of-era, month-of-year and day-of-month fields. |
abstract int |
Chronology.prolepticYear(Era era,
int yearOfEra)
Calculates the proleptic-year given the era and year-of-era.
|
int |
IsoChronology.prolepticYear(Era era,
int yearOfEra) |
int |
ThaiBuddhistChronology.prolepticYear(Era era,
int yearOfEra) |
int |
JapaneseChronology.prolepticYear(Era era,
int yearOfEra) |
int |
MinguoChronology.prolepticYear(Era era,
int yearOfEra) |
int |
HijrahChronology.prolepticYear(Era era,
int yearOfEra) |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0