1

On my host I can show the adoption of the Gregorian calendar as it occurred for Great Britain and its colonies in 1752:

$ cal september 1752
   September 1752     
Su Mo Tu We Th Fr Sa  
       1  2 14 15 16  
17 18 19 20 21 22 23  
24 25 26 27 28 29 30  

The corresponding adoption for Denmark and Norway happened much earlier:

Sunday, 18 February 1700, was followed by Monday, 1 March 1700.

I thought I could override the timezone environment variable to show this, but that doesn't work:

$ TZ=DK february 1700
   February 1700      
Su Mo Tu We Th Fr Sa  
             1  2  3  
 4  5  6  7  8  9 10  
11 12 13 14 15 16 17  
18 19 20 21 22 23 24  
25 26 27 28 29        

How do I get cal to show Denmark's adoption of the Gregorian calendar?

My cal is supplied by bsdmainutils version 11.1.2.

1

1 Answer 1

1

cal follows the POSIX specification for cal, which says

as though the Gregorian calendar had been adopted on September 14, 1752.

There’s no option to show the calendar with a different switch date.

ncal supports different switch dates with the -s option:

$ ncal -s DK february 1700
    February 1700
Mo     5 12
Tu     6 13
We     7 14
Th  1  8 15
Fr  2  9 16
Sa  3 10 17
Su  4 11 18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .