Aaron LI has rewritten calendar(1) to support Chinese (lunisolar) and Julian calendars, and along the way added support for other calendars, more options, and generally improved the program. His original source archive is available, as is his reference book.