News for hackers. Stuff that matters.
Re:Day of Week Algorithm by calinet6 on Friday March 25, 2016 @04:21PM (#11362395)
What a fascinating way to solve the problem.

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.

Re:Day of Week Algorithm by Daneel_ on Saturday March 26, 2016 @03:08AM (#11364759)
Completely agree. When I first started using cron I was chuffed at this.