#cli #time #date #date-time

yanked calendar

Simple CLI Calendar

0.1.3 Sep 11, 2020
0.1.2 Sep 11, 2020
0.1.1 Sep 10, 2020
0.1.0 Sep 9, 2020
0.0.1 May 1, 2020

#300 in #date

MIT/Apache

12KB
230 lines

Calendar

Command-line calendar based on cal.

It uses a compact layout that fits in 65x23 characters.

Example output (for 2020):

Su Mo Tu We Th Fr Sa  Su Mo   2020   Fr Sa  Su Mo Tu We Th Fr Sa
Jan       1  2  3  4  May             1  2  Sep    1  2  3  4  5
 5  6  7  8  9 10 11   3  4  5  6  7  8  9   6  7  8  9 10 11 12
12 13 14 15 16 17 18  10 11 12 13 14 15 16  13 14 15 16 17 18 19
19 20 21 22 23 24 25  17 18 19 20 21 22 23  20 21 22 23 24 25 26
26 27 28 29 30 31     24 25 26 27 28 29 30  27 28 29 30
Feb                1  31                    Oct          1  2  3
 2  3  4  5  6  7  8  Jun 1  2  3  4  5  6   4  5  6  7  8  9 10
 9 10 11 12 13 14 15   7  8  9 10 11 12 13  11 12 13 14 15 16 17
16 17 18 19 20 21 22  14 15 16 17 18 19 20  18 19 20 21 22 23 24
23 24 25 26 27 28 29  21 22 23 24 25 26 27  25 26 27 28 29 30 31
Mar                   28 29 30              Nov
 1  2  3  4  5  6  7  Jul       1  2  3  4   1  2  3  4  5  6  7
 8  9 10 11 12 13 14   5  6  7  8  9 10 11   8  9 10 11 12 13 14
15 16 17 18 19 20 21  12 13 14 15 16 17 18  15 16 17 18 19 20 21
22 23 24 25 26 27 28  19 20 21 22 23 24 25  22 23 24 25 26 27 28
29 30 31              26 27 28 29 30 31     29 30
Apr       1  2  3  4  Aug                1  Dec    1  2  3  4  5
 5  6  7  8  9 10 11   2  3  4  5  6  7  8   6  7  8  9 10 11 12
12 13 14 15 16 17 18   9 10 11 12 13 14 15  13 14 15 16 17 18 19
19 20 21 22 23 24 25  16 17 18 19 20 21 22  20 21 22 23 24 25 26
26 27 28 29 30        23 24 25 26 27 28 29  27 28 29 30 31
                      30 31

Syntax:

calendar                # prints calendar for current month
calendar 2021           # prints calendar for 2021
calendar January 2021   # prints calendar for January 2021

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps