2 ms·
> That would be the sane thing to do. But the same applies to `YYYY`: it should be used for "year of era". Why? `yyyy` is simpler to type, so makes a lot more
by masklinn 5y ago
> That would be the sane thing to do. But the same applies to `YYYY`: it should be used for "year of era".
Why? `yyyy` is simpler to type, so makes a lot more sense for "year of era".
> For contrast in moment.js, YYYY and yyyy do what you expect and "week year" is GGGG or gggg.
In LDML (which I assume is what SimpleDateFormat uses), the G field is already spoken for the era name (BC/BCE and AD/CE).