LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   holiday calendar (https://www.linuxquestions.org/questions/linux-newbie-8/holiday-calendar-8629/)

Scamps 11-12-2001 01:06 PM

holiday calendar
 
Hi,
I need to write a command line that produces the following output:
'Christmas Holidays 2001/2002'
This should be followed by the calendar months of December 2001 & January 2002.

I've looked at the man cal facility but although that shows me how to output the calendar (either monthly or quarterly display), it doesn't help much for writing the command.
I'm not sure how to display 2 months. Can someone please help?
Thanks
Scamps

WindozBytes 11-13-2001 12:36 PM

try this:

(cal 12 2001; cal 1 2002) ;


just for fun, you might also try:

cal 9 1752

Scamps 11-13-2001 01:08 PM

Thanks :o)
why does cal 9 1752 skip the dates 3-13? is that some kinda bug or did the world get abducted by aliens for those 10 days?:)

WindozBytes 11-14-2001 07:04 AM

19 days hath September....
 
The short answer is that a group of monks and other educated individuals of the day got together and discovered that the way they had been keeping track of time, up to that point, was wrong. Not only was it wrong, but they were currently off by 11 days. They adjusted the calendar by those 11 days, and to ensure that the problem did not happen again, established the formulas by which we now caculate leap year.

Scamps 11-14-2001 12:00 PM

Well there you go! I learned something today :)
Thanks for the interesting lesson & for your help in my original post.
Scamps


All times are GMT -5. The time now is 01:49 AM.