Why is it that Unix treats Sunday as '0' (for day of the week), but Date::Calc treats Sunday as '7'? Is it because '0' could be interpreted as "false"? Ruby also does this.
To confuse us even more, the localtime function treats Sunday as '0'.
Could we make up our minds? Anyone know how other languages treat Sunday?
Remember...
ziggy on 2002-03-04T18:17:06
If you're having trouble keeping 0 and 7 straight for Sunday, remember that
7 mod 7 ==0.
And...
koschei on 2002-03-06T06:33:29
there's at least one module that accepts both 0 and 7 as Sunday (like linux's cron). But, yeah, the simplest thing to do is just mod 7 anything that comes out.