https://github.com/randruc/perpetualcalendar
A simple perpetual calendar in C.
https://github.com/randruc/perpetualcalendar
c calendar libc
Last synced: about 2 months ago
JSON representation
A simple perpetual calendar in C.
- Host: GitHub
- URL: https://github.com/randruc/perpetualcalendar
- Owner: randruc
- Created: 2018-06-12T15:40:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T23:31:09.000Z (over 4 years ago)
- Last Synced: 2025-03-14T00:28:37.521Z (over 1 year ago)
- Topics: c, calendar, libc
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Perpetual Calendar in C
Usage: `perpetual-calendar []`
This program will generate a calendar for a given year and month on stdout.
If no month is provided, the program will generate a calendar for the whole
given year.
This program takes into account the actual formula to determine leap years
(instead of just dividing by 4). See https://en.wikipedia.org/wiki/Leap_year
## Building
GCC is hard-coded in the makefile, but any C89 compiler can do the job.
This program only depends on libc.
To build, simply use `make`. It will generate an executable in the same
directory.
## License
This program is in the public domain.