Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bananabiscuit
· 3y ago · 0 comments
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.
Comments
[–]
bed147373429
3y ago
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.