News for hackers. Stuff that matters.
Re:Someday aliens will land and all will be fine until we ex... by shakezula on Sunday September 25, 2022 @04:55PM (#32976128)
> Sunday = 1

Animals. Absolutely barbaric.

Everybody knows we should index lists starting at 0. /s

Re:Someday aliens will land and all will be fine until we ex... by Dylan16807 on Sunday September 25, 2022 @11:37PM (#32979112)
Well by struct tm, Sunday is 0. And months start at 0. And the day of the month starts at 1!
Re:Someday aliens will land and all will be fine until we ex... by throwaway2037 on Monday September 26, 2022 @02:46AM (#32980186)
I remember years ago that Larry Wall said about Perl 5->6 upgrade: "We can fix some broken things." This was an item on his big list.
Re:Someday aliens will land and all will be fine until we ex... by stnikolauswagne on Sunday September 25, 2022 @05:17PM (#32976365)
Time to start a movement to consider saturday the as the beginning of the week!
Re:Someday aliens will land and all will be fine until we ex... by rieTohgh6 on Monday September 26, 2022 @03:37AM (#32980463)
I remember seeing API that accepted both 0 and 7 as Sunday.
Re:Someday aliens will land and all will be fine until we ex... by N19PEDL2 on Monday September 26, 2022 @04:38AM (#32980783)
crontab uses this approach, for example.