Support for various regional calendars.
-
Heisei is valid from 1989-01-08 until 2019-04-30 (emperor Akihito).
Meji is valid from year 1868 until 1912-07-29.
Reiwa is valid from 2019-05-01 onwards (emperor Naruhito).
Shōwa is valid from 1926-12-25 until 1989-01-07.
Taishō is valid from 1912-07-30 until 1926-12-24.
Represents the Japanese era (nengo).
Yields the Japanese era (nengo).
Tries to find a suitable nengo for given japanese kanji representation.
Obtains the official nengo for given related gregorian year.
Obtains the nengo for given related gregorian year and selector strategy.
Tries to find the next nengo in chronological order.
Tries to find the previous nengo in chronological order.
Obtains a list of all official nengos in chronological ascending order.
Obtains a list of all nengos in chronological ascending order selected by given selector.
Tries to find suitable nengos for given representation in romaji.
Obtains a stream of all official nengos in chronological ascending order.
Obtains a stream of all nengos in chronological ascending order selected by given selector.
Equivalent to JapaneseCalendar.of(nengo, yearOfNengo, month, dayOfMonth, Leniency.SMART)
.
Creates a new instance of a Japanese calendar date.
JapaneseCalendar.ofGregorian(Nengo nengo,
int yearOfNengo,
int month,
int dayOfMonth)
Creates a modern Japanese calendar for all dates since Meiji 6 (gregorian calendar rules).