GeezerVison is showing docs.oracle.com — JapaneseChronology (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.time.chrono
Class JapaneseChronology
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
JapaneseDate |
date(Era era,
int yearOfEra,
int month,
int dayOfMonth) |
Obtains a local date in Japanese calendar system from the
era, year-of-era, month-of-year and day-of-month fields.
|
JapaneseDate |
date(int prolepticYear,
int month,
int dayOfMonth) |
Obtains a local date in Japanese calendar system from the
proleptic-year, month-of-year and day-of-month fields.
|
JapaneseDate |
date(TemporalAccessor temporal) |
Obtains a local date in this chronology from another temporal object.
|
JapaneseDate |
dateEpochDay(long epochDay) |
Obtains a local date in the Japanese calendar system from the epoch-day.
|
JapaneseDate |
dateNow() |
Obtains the current local date in this chronology from the system clock in the default time-zone.
|
JapaneseDate |
dateNow(Clock clock) |
Obtains the current local date in this chronology from the specified clock.
|
JapaneseDate |
dateNow(ZoneId zone) |
Obtains the current local date in this chronology from the system clock in the specified time-zone.
|
JapaneseDate |
dateYearDay(Era era,
int yearOfEra,
int dayOfYear) |
Obtains a local date in Japanese calendar system from the
era, year-of-era and day-of-year fields.
|
JapaneseDate |
dateYearDay(int prolepticYear,
int dayOfYear) |
Obtains a local date in Japanese calendar system from the
proleptic-year and day-of-year fields.
|
JapaneseEra |
eraOf(int eraValue) |
Returns the calendar system era object from the given numeric value.
|
List<Era> |
eras() |
Gets the list of eras for the chronology.
|
String |
getCalendarType() |
Gets the calendar type of the underlying calendar system - 'japanese'.
|
String |
getId() |
Gets the ID of the chronology - 'Japanese'.
|
boolean |
isLeapYear(long prolepticYear) |
Checks if the specified year is a leap year.
|
ChronoLocalDateTime<JapaneseDate> |
localDateTime(TemporalAccessor temporal) |
Obtains a local date-time in this chronology from another temporal object.
|
int |
prolepticYear(Era era,
int yearOfEra) |
Calculates the proleptic-year given the era and year-of-era.
|
ValueRange |
range(ChronoField field) |
Gets the range of valid values for the specified field.
|
JapaneseDate |
resolveDate(Map<TemporalField,Long> fieldValues,
ResolverStyle resolverStyle) |
Resolves parsed ChronoField values into a date during parsing.
|
ChronoZonedDateTime<JapaneseDate> |
zonedDateTime(Instant instant,
ZoneId zone) |
Obtains a ChronoZonedDateTime in this chronology from an Instant.
|
ChronoZonedDateTime<JapaneseDate> |
zonedDateTime(TemporalAccessor temporal) |
Obtains a ChronoZonedDateTime in this chronology from another temporal object.
|
-
-
Method Detail
-
getId
public String getId()
Gets the ID of the chronology - 'Japanese'.
The ID uniquely identifies the Chronology.
It can be used to lookup the Chronology using Chronology.of(String).
- Specified by:
getId in interface Chronology
- Returns:
- the chronology ID - 'Japanese'
- See Also:
getCalendarType()
-
eras
public List<Era> eras()
Gets the list of eras for the chronology.
Most calendar systems have an era, within which the year has meaning.
If the calendar system does not support the concept of eras, an empty
list must be returned.
- Specified by:
eras in interface Chronology
- Returns:
- the list of eras for the chronology, may be immutable, not null
Java™ Platform Standard Ed. 8
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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|