https://github.com/printfn/calendar
cal-like Calendar
https://github.com/printfn/calendar
calendar
Last synced: 3 months ago
JSON representation
cal-like Calendar
- Host: GitHub
- URL: https://github.com/printfn/calendar
- Owner: printfn
- License: gpl-3.0
- Created: 2016-10-01T07:36:38.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-04-18T11:07:49.000Z (about 2 years ago)
- Last Synced: 2025-01-18T07:12:59.491Z (5 months ago)
- Topics: calendar
- Language: C
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calendar
Very simple command-line calendar, inspired by `cal`.
Always fits into a 25x80 terminal.
Example output (for 2023):
```
Su Mo Tu We Th Fr Sa Su Mo 2023 Fr Sa Su Mo Tu We Th Fr Sa
Jan 1 2 3 4 5 6 7 Feb 1 2 3 4 Mar 1 2 3 4
8 9 10 11 12 13 14 5 6 7 8 9 10 11 5 6 7 8 9 10 11
15 16 17 18 19 20 21 12 13 14 15 16 17 18 12 13 14 15 16 17 18
22 23 24 25 26 27 28 19 20 21 22 23 24 25 19 20 21 22 23 24 25
29 30 31 26 27 28 26 27 28 29 30 31
Apr 1 May 1 2 3 4 5 6 Jun 1 2 3
2 3 4 5 6 7 8 7 8 9 10 11 12 13 4 5 6 7 8 9 10
9 10 11 12 13 14 15 14 15 16 17 18 19 20 11 12 13 14 15 16 17
16 17 18 19 20 21 22 21 22 23 24 25 26 27 18 19 20 21 22 23 24
23 24 25 26 27 28 29 28 29 30 31 25 26 27 28 29 30
30
Jul 1 Aug 1 2 3 4 5 Sep 1 2
2 3 4 5 6 7 8 6 7 8 9 10 11 12 3 4 5 6 7 8 9
9 10 11 12 13 14 15 13 14 15 16 17 18 19 10 11 12 13 14 15 16
16 17 18 19 20 21 22 20 21 22 23 24 25 26 17 18 19 20 21 22 23
23 24 25 26 27 28 29 27 28 29 30 31 24 25 26 27 28 29 30
30 31
Oct 1 2 3 4 5 6 7 Nov 1 2 3 4 Dec 1 2
8 9 10 11 12 13 14 5 6 7 8 9 10 11 3 4 5 6 7 8 9
15 16 17 18 19 20 21 12 13 14 15 16 17 18 10 11 12 13 14 15 16
22 23 24 25 26 27 28 19 20 21 22 23 24 25 17 18 19 20 21 22 23
29 30 31 26 27 28 29 30 24 25 26 27 28 29 30
31
```Syntax:
calendar # prints calendar for current year
calendar 2022 # prints calendar for 2022## License
This project is available under the GPL 3.0 or later.