News for hackers. Stuff that matters.
Re:Show HN: Moon Phase Algorithms for C, Lua, Awk, JavaScrip... by hulitu on Thursday June 05, 2025 @01:38AM (#44188593)
> January 0th makes sense because a year starts on January 1st. You count days of the year from 1 instead of from 0. So if we are going by the day of the year, day 1 of the year should be Jan1, the consequence of this being that Jan0 exists and is Dec31 of the prev year.

That's how bugs get introduced. /s

There are no comments on this comment yet.