Uses of Class
java.time.chrono.JapaneseEra
| Package | Description |
|---|---|
| java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
-
Uses of JapaneseEra in java.time.chrono
Fields in java.time.chrono declared as JapaneseEra Modifier and Type Field Description static JapaneseEraJapaneseEra. HEISEIThe singleton instance for the 'Heisei' era (1989-01-08 - 2019-04-30) which has the value 2.static JapaneseEraJapaneseEra. MEIJIThe singleton instance for the 'Meiji' era (1868-01-01 - 1912-07-29) which has the value -1.static JapaneseEraJapaneseEra. REIWAThe singleton instance for the 'Reiwa' era (2019-05-01 - ) which has the value 3.static JapaneseEraJapaneseEra. SHOWAThe singleton instance for the 'Showa' era (1926-12-25 - 1989-01-07) which has the value 1.static JapaneseEraJapaneseEra. TAISHOThe singleton instance for the 'Taisho' era (1912-07-30 - 1926-12-24) which has the value 0.Methods in java.time.chrono that return JapaneseEra Modifier and Type Method Description JapaneseEraJapaneseChronology. eraOf(int eraValue)Returns the calendar system era object from the given numeric value.JapaneseEraJapaneseDate. getEra()Gets the era applicable at this date.static JapaneseEraJapaneseEra. of(int japaneseEra)Obtains an instance ofJapaneseErafrom anintvalue.static JapaneseEraJapaneseEra. valueOf(String japaneseEra)Returns theJapaneseErawith the name.static JapaneseEra[]JapaneseEra. values()Returns an array of JapaneseEras.Methods in java.time.chrono with parameters of type JapaneseEra Modifier and Type Method Description static JapaneseDateJapaneseDate. of(JapaneseEra era, int yearOfEra, int month, int dayOfMonth)Obtains aJapaneseDaterepresenting a date in the Japanese calendar system from the era, year-of-era, month-of-year and day-of-month fields.