Y
Hacker News
new
|
ask
|
show
|
jobs
by
bananabiscuit
1081 days ago
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.
1 comments
bed147373429
1081 days 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.
link