Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Day of Week Algorithm. Parent comment
You want Sunday as the first day? Fine, do your index zero-based and Sunday is Zero.
You want Monday as the first day? Fine, index 1-based and use 7 for Sunday.
Kind of brilliant.
You want Sunday as the first day? Fine, do your index zero-based and Sunday is Zero.
You want Monday as the first day? Fine, index 1-based and use 7 for Sunday.
Kind of brilliant.