A Chinese calendar based on the UNIX calendar(1) utility for BSD, Linux, and macOS systems.
The Chinese calendar calculation, as well as the Sun and Moon calculations, is implemented with astronomical algorithms by referring to Calendrical Calculations: The Ultimate Edition (4th Edition) by Edward M. Reingold and Nachum Dershowitz.
This utility was derived from the calendar(1) in DragonFly BSD on 2019-11-16. It has since been rewritten to be more clean, understandable, and extensible. Currently, the Gregorian, Julian, and Chinese calendars are supported. Some updates in FreeBSD, OpenBSD, NetBSD, and Debian Linux have also been integrated.
See also the calendar(1) man page.
Welcome to try this utility, report issues, and contribute fixes and improvements :D
Requirements:
- GCC
- GNU Make
Build and installation:
make [PREFIX=/usr/local]
sudo make install [PREFIX=/usr/local]
[RD18] Edward M. Reingold and Nachum Dershowitz, Calendrical Calculations: The Ultimate Edition (4th Edition). Cambridge University Press, 2018. ISBN: 9781107057623
The 3-Clause BSD License
Copyright (c) 2019-2020 The DragonFly Project.