LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2001, 01:06 PM   #1
Scamps
LQ Newbie
 
Registered: Nov 2001
Posts: 8

Rep: Reputation: 0
Unhappy 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
 
Old 11-13-2001, 12:36 PM   #2
WindozBytes
Member
 
Registered: Aug 2001
Location: CT, USA
Distribution: Mandriva 2008
Posts: 105

Rep: Reputation: 15
try this:

(cal 12 2001; cal 1 2002) ;


just for fun, you might also try:

cal 9 1752
 
Old 11-13-2001, 01:08 PM   #3
Scamps
LQ Newbie
 
Registered: Nov 2001
Posts: 8

Original Poster
Rep: Reputation: 0
Wink

Thanks )
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?
 
Old 11-14-2001, 07:04 AM   #4
WindozBytes
Member
 
Registered: Aug 2001
Location: CT, USA
Distribution: Mandriva 2008
Posts: 105

Rep: Reputation: 15
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.
 
Old 11-14-2001, 12:00 PM   #5
Scamps
LQ Newbie
 
Registered: Nov 2001
Posts: 8

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Short holiday in Europe J_K9 General 14 10-14-2005 05:57 PM
PHP Holiday Calendar roballen Linux - Software 3 06-13-2004 02:22 AM
What's this calendar? max74 Linux - Newbie 7 09-22-2003 01:57 PM
prompt based calendar program? Calendar? thebeaglebeagle Linux - Software 0 09-15-2003 01:10 PM
Holiday Destination... X11 General 23 04-14-2002 11:53 AM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration