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

2019-01-29 Thread kishida naoki
AY, 1).build().getTime()) > $3 ==> "元号元年" > > 2. For java.time API, use > DateTimeFormatterBuilder.appendText(TemporalField, Map) to > map the 1 to "元". Following issue demonstrates how to do it: > > https://bugs.openjdk.java.net/browse/JDK-8042131 > >

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

2019-01-29 Thread kishida naoki
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))` outpu

Japanese New Era supporting does not accept Heisei 32

2018-06-14 Thread kishida naoki
I'm trying to use the Japanese new era supporting and have found that it does not accept Heisei 32. There are many document that include Heisei 32 or later at present. For example, the expiration date of my driver license is Heisei 32 March. JDK10 can accept Heisei 32. I think the change of the beh