Re:
by bananabiscuit on Wednesday July 05, 2023 @07:25AM
(#36598767)
Do you also have to account for leap years somehow? I think on leap years you need to add one to the month code for all months except Jan and Feb.
[ Parent
| on HN ]
Re:
by bed147373429 on Wednesday July 05, 2023 @08:23AM
(#36599382)
Hi, thanks for this question! On leap years the code for January and February is decreased by 1. Everything else stays the same! I updated the blog and the Go code to take care of this.