Live data from Hacker News

Do not use 'week year': YYYY

github.com

1–10 of 94 posts

Re: Do not use 'week year': YYYY

#6
post #4

Ha, I just fixed a similar thing at work right before Christmas. If you use java, consider using google error-prone. It has a check for that (and many other things) https://errorprone.info/bugpattern/MisusedWeekYear

Is there something similar for Python or JavaScript?

Re: Do not use 'week year': YYYY

#7
I understand that "week year" is basically a payroll creation, but I am a bit concerned about the last few days of 2021 were logged as 2022, and Jan 1st 2022 was even logged as 2023.

The last few days of 2021 logged as 2022 makes sense for payroll, but how the heck is Jan 1st 2022 put in the 2023 year?

Post reply on HN