RFR: 8317742: ISO Starndard Date Format implementation consistency on DateTimeFormatter and String.format

Claes Redestad redestad at openjdk.org
Mon Oct 9 18:55:18 UTC 2023


On Tue, 3 Oct 2023 21:37:46 GMT, 温绍锦 <duke at openjdk.org> wrote:

> j.u.Formatter now prints "%tF" (iso standard date) and the result is incorrect when processing year < 0 or year > 9999

I think this deserves a discussion on the mailing list before jumping to a PR, as neither `%tF` nor the ISO-8601 standard it defers to is particularly well-defined outside of the range 0-9999

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16033#issuecomment-1746690241


More information about the core-libs-dev mailing list