Back to TILs

Calendar with week number

Table of contents

gcal installation on Debian

apt install gcal

Week number

Week stating on Sunday:

$ gcal -K -s 7

January 2023

Sunday       1  8 15 22 29   
Monday       2  9 16 23 30   
Tuesday      3 10 17 24 31   
Wednesday    4 11 18 25      
Thursday     5 12 19 26      
Friday       6 13 20 27      
Saturday     7 14 21 28      

Week      52/0 01 02 03 04   

Week starting on Monday:

$ gcal -K -s 1

January 2023

Monday          2  9 16 23 30
Tuesday         3 10 17 24 31
Wednesday       4 11 18 25   
Thursday        5 12 19 26   
Friday          6 13 20 27   
Saturday        7 14 21 28   
Sunday       1  8 15 22 29   

Week      52/0 01 02 03 04 05

An alias for convenience

alias cal='gcal -K -s 1'

Reference