Conversation
Notices
-
Claes Wallin (韋嘉誠) (clackemovedtoheldscalla@quitter.se)'s status on Friday, 04-Dec-2015 12:11:18 UTC Claes Wallin (韋嘉誠) $ date +%W
48
No, it's week 49. #americanculturalassumption ? #gnu #coreutils #fail-
lnxw48 (Linux Walt) (lnxw48@fresh.federati.net)'s status on Friday, 04-Dec-2015 12:18:25 UTC lnxw48 (Linux Walt) @clacke Is there a switch to change which day-of-the-week is first? With multiple date systems out there, this should be possible. Claes Wallin (韋嘉誠) repeated this. -
Claes Wallin (韋嘉誠) (clackemovedtoheldscalla@quitter.se)'s status on Friday, 04-Dec-2015 12:22:46 UTC Claes Wallin (韋嘉誠) @lnxw48 And that's a whole other can o'worms. :-)
On Android 2.3 I set Indian English to get Monday-weeks. Now it's a Calendar setting. -
Claes Wallin (韋嘉誠) (clackemovedtoheldscalla@quitter.se)'s status on Friday, 04-Dec-2015 12:24:19 UTC Claes Wallin (韋嘉誠) Aha! Man page says:
%V ISO week number
%W week number
Both assume Monday starts the week. -
MMN-o ✅⃠ (mmn@social.umeahackerspace.se)'s status on Saturday, 05-Dec-2015 23:16:25 UTC MMN-o ✅⃠ @clacke There's also the variations of counting Jan 1 of the new year to either the first week of the new year (even though it's maybe not a Monday, but because it's a new year) or the last week of the previous year (because it's probably _not_ a Monday and thus a continuation of the last week). Claes Wallin (韋嘉誠) repeated this. -
Temporary Marjolein (mk@oracle.skilledtests.com)'s status on Sunday, 06-Dec-2015 04:18:18 UTC Temporary Marjolein @mmn @clacke there are standards for that. :-) Yes, plural, but standards nonetheless. Just pick one and stick with it. Claes Wallin (韋嘉誠) repeated this. -
Claes Wallin (韋嘉誠) (clackemovedtoheldscalla@quitter.se)'s status on Tuesday, 08-Dec-2015 15:19:35 UTC Claes Wallin (韋嘉誠) @mk @mmn @lnxw48 POSIX picked the wrong one. But they also have ISO, so it's all good. #Fail is on me for kneejerk reaction before man page. -
Claes Wallin (韋嘉誠) (clackemovedtoheldscalla@quitter.se)'s status on Tuesday, 08-Dec-2015 15:20:43 UTC Claes Wallin (韋嘉誠) @mmn @mk @lnxw48 Yeah, which week is week 1 is the difference between POSIX and ISO week numbering. -
nds (nds@micro.fragdev.com)'s status on Tuesday, 08-Dec-2015 15:35:13 UTC nds @clacke I mean, no matter what the standard is, there's some form of cultural assumption… Claes Wallin (韋嘉誠) repeated this. -
Claes Wallin (韋嘉誠) (clackemovedtoheldscalla@quitter.se)'s status on Tuesday, 08-Dec-2015 17:20:25 UTC Claes Wallin (韋嘉誠) @nds @mk @mmn @lnxw48 Of course. My sort of joke was that the American assumption is wrong and mine is correct. ;-)
-