Open xatok opened 1 year ago
This code using 1.6.1 version of threetenbp:
1.6.1
threetenbp
org.threeten.bp.LocalDate .of(2020, 1, 1) .format(org.threeten.bp.format.DateTimeFormatter.ofPattern("QQQQ", Locale.FRANCE))
outputs: 1st quarter
1st quarter
And then the same code using Java 11 implementation it outputs the correct format:
java.time.LocalDate .of(2020, 1, 1) .format(java.time.format.DateTimeFormatter.ofPattern("QQQQ", Locale.FRANCE))
outputs: 1er trimestre
1er trimestre
The outputs should be also localized with threetenbp.
Threeten-Backport doe not have a general purpose mechanism for supplying text like this, it would be a big job to do so. Later JDKs simply have more data built in.
This code using
1.6.1
version ofthreetenbp
:outputs:
1st quarter
And then the same code using Java 11 implementation it outputs the correct format:
outputs:
1er trimestre
The outputs should be also localized with threetenbp.