Will we have any option to format 2019 as 元号元年?

kishida naoki naokikishida at gmail.com
Tue Jan 29 12:21:57 UTC 2019

As you know, Japanese government have a plan to change the era on May.
It will be the first year of the new era.
In practice, we describe the first year as "元年" not as "1年"

Now DateTimeFormatter with `G` output the era.
`DateTimeFormatter.ofPattern("Gy年").format(JapaneseDate.of(2019, 5, 2))`
output `元号1年`

Do you have any plan to have a option to format it as `元号元年` or already

Naoki Kishida

More information about the core-libs-dev mailing list