News for hackers. Stuff that matters.
Re:Do not use 'week year': YYYY by masklinn on Tuesday January 04, 2022 @09:43AM (#29795251)
> 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).

There are no comments on this comment yet.