public final class JapaneseChronology extends Chronology implements java.io.Serializable
JapaneseChronology
defines the rules of the Japanese Imperial calendar system.
Only Keio (1865-04-07 - 1868-09-07) and later eras are supported.
Older eras are recognized as unknown era, and the year of era of
unknown era is Gregorian year.
JapaneseChronology is immutable and thread-safe.
Modifier and Type | Field and Description |
---|---|
static JapaneseChronology |
INSTANCE
The singleton instance of
JapaneseChronology . |
Modifier and Type | Method and Description |
---|---|
static DateTimeFieldRule<java.lang.Integer> |
dayOfMonthRule()
Gets the rule for the day-of-month field in the Japanese chronology.
|
static DateTimeFieldRule<DayOfWeek> |
dayOfWeekRule()
Gets the rule for the day-of-week field in the Japanese chronology.
|
static DateTimeFieldRule<java.lang.Integer> |
dayOfYearRule()
Gets the rule for the day-of-year field in the Japanese chronology.
|
static DateTimeFieldRule<JapaneseEra> |
eraRule()
Gets the rule for the era field in the Japanese chronology.
|
java.lang.String |
getName()
Gets the name of the chronology.
|
static DateTimeFieldRule<MonthOfYear> |
monthOfYearRule()
Gets the rule for the month-of-year field in the Japanese chronology.
|
static PeriodUnit |
periodDays()
Gets the period unit for days.
|
static PeriodUnit |
periodEras()
Gets the period rule for eras.
|
static PeriodUnit |
periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
periodWeeks()
Gets the period unit for weeks.
|
static PeriodUnit |
periodYears()
Gets the period unit for years.
|
static DateTimeFieldRule<java.lang.Integer> |
yearOfEraRule()
Gets the rule for the year of era field in the Japanese chronology.
|
get, rule, toString
public static final JapaneseChronology INSTANCE
JapaneseChronology
.public java.lang.String getName()
getName
in class Chronology
public static DateTimeFieldRule<JapaneseEra> eraRule()
public static DateTimeFieldRule<java.lang.Integer> yearOfEraRule()
public static DateTimeFieldRule<MonthOfYear> monthOfYearRule()
public static DateTimeFieldRule<java.lang.Integer> dayOfMonthRule()
public static DateTimeFieldRule<java.lang.Integer> dayOfYearRule()
public static DateTimeFieldRule<DayOfWeek> dayOfWeekRule()
public static PeriodUnit periodEras()
The period rule defines the concept of a period of an era. The Japanese era is of variable length, so for the purpose of an estimated duration this rule is equal to 40 years.
See eraRule()
for the main date-time field.
public static PeriodUnit periodYears()
The period unit defines the concept of a period of a year. This is equivalent to the ISO years period unit.
See yearOfEraRule()
for the main date-time field.
public static PeriodUnit periodMonths()
The period unit defines the concept of a period of a month. This is equivalent to the ISO months period unit.
See monthOfYearRule()
for the main date-time field.
public static PeriodUnit periodWeeks()
The period unit defines the concept of a period of a week. This is equivalent to the ISO weeks period unit.
public static PeriodUnit periodDays()
The period unit defines the concept of a period of a day. This is equivalent to the ISO days period unit.
See dayOfMonthRule()
for the main date-time field.