附带节假日和阴历的命令行程序

gcal -i -s1 -qcn --chinese-months -cezk .
包括: 除夕(Chinese New Year?s Day)、清明(Tomb-Sweeping Day)、端午(Dragon Boat Festival)、中秋(Mid-Autumn Festival)等传统节日,以及元旦、五一、十一、儿童节、教师节等。
Sample Output
                                2010/2011


      November                  December                  January
 Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su      Mo Tu We Th Fr Sa Su
  1  2  3  4  5  6  7             1  2  3  4  5                    : 1: 2:
  8  9 10 11 12 13 14       6  7  8  9 10 11 12       3  4  5  6  7  8  9
 15 16 17 18 19 20 21      13 14 15 16<17>18 19      10 11 12 13 14 15 16
 22 23 24 25 26 27 28      20 21 22 23 24 25 26      17 18 19 20 21 22 23
 29 30                     27 28 29 30 31            24 25 26 27 28 29 30
                                                     31                  

Fixed date list:

1)  |44|   Sa,   6 Nov 2010: Start of common month 10/4647 (Chi*)
2)  |49|   Mo,   6 Dec 2010: Start of common month 11/4647 (Chi*)
3)  |51|   We,  22 Dec 2010: Solstice Day (CN)
4)  |52/0| Sa, : 1:Jan 2011: New Year's Day (CN)
5)  |52/0| Su, : 2:Jan 2011: New Year's Day (CN)
6)  |01|   Tu,   4 Jan 2011: Start of common month 12/4647 (Chi*)

0
By: s5unty
2010-12-17 10:07:43
cli

These Might Interest You

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: