3 ms·
"cal -3" is quite useful, I use it all the time. To show the week-of-year use "ncal -w". Add "-S" if you want ncal to start weeks on Sunday (crazy!).
by Tepix 9y ago
"cal -3" is quite useful, I use it all the time.
To show the week-of-year use "ncal -w". Add "-S" if you want ncal to start weeks on Sunday (crazy!).
- kwhitefoot 9y agoWhy crazy?
- cyphar 9y agoA large proportion (if not the majority) of the world starts their calanders on Monday. While the ordering is arbitrary, I always thought of the weekend as a single block of days so it's odd to say that the week ends in the middle of the weekend (rather than at the end of the weekend).
- coreyp_1 9y agoI always saw "weekend" in the same way as "book end", that is, that one is at the beginning of the week (one starting end), and one is at the conclusion of the week (the finishing end). Because our weeks come successively, the end of one is immediately followed by the beginning of the next, hence the "block" called the "weekend".
- cyphar 9y agoI'd never thought of it that way. I still think it's odd because book ends aren't made of chapters of a book (and weekends are days like any other). All-in-all it's arbitrary anyway. :P https://xkcd.com/1073/ https://xkcd.com/1073/
- kwhitefoot 9y agoBookends usually come in pairs.
- bartl 9y agoUse `cal -m` if you want a week to start on a Monday. AFAIK Sunday is the (US centric) default.
- bratch 9y ago`cal` does try to use the expected first day of the week based on the locale. It seems to at least use LC_TIME from some quick local testing: bratch@serenity ~ $ LC_TIME=en_GB cal | head -n2 May 2017 Mo Tu We Th Fr Sa Su bratch@serenity ~ $ LC_TIME=en_US cal | head -n2 May 2017 Su Mo Tu We Th Fr Sa