lunar - Chinese Lunar Calendar conversion utility

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: lunar
Package version: 2.2
Package release: 4
Package architecture: amd64
Package type: deb
Installed size: 74 B
Download size: 15.52 KB
Official Mirror:
The program performs date conversion between the Gregorian Solar Calendar (SC) and the Chinese Lunar Calendar (LC). Given a date in either calendar, the program also outputs the corresponding "shengxiao" animal of the year) and "ganzhi" characters. The date range currently covered is from about 1900 A.D. to 2049 A.D.




    Binary package: lunar_2.2-4_amd64.deb
    Source package: lunar

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install lunar deb package:
      # sudo apt-get install lunar


    • /usr/bin/lunar
    • /usr/share/doc/lunar/changelog.Debian.gz
    • /usr/share/doc/lunar/copyright
    • /usr/share/lunar/lunar.bitmap
    • /usr/share/man/man1/lunar.1.gz


    2013-11-20 - Anthony Fok <> lunar (2.2-4) unstable; urgency=low * Acknowledge NMU on 2.2-3.1. Thanks to CHENG Yuk-Pong for noticing the wrong output on year 2033 and providing an initial patch, and to LI Daobing for providing a corrected patch and NMU. * Use current locale and system time for display by default. Most parameters thus become optional. Saves a lot of typing! :-) * lunar.bitmap contained a line that was too long, and with the new aggressive loop optimizations in GCC 4.8, "lunar -b" would not stop looping when parsing lunar.bitmap, and would eventually result in a segmentation fault. Fixed lunar.bitmap and lunar.c accordingly. * Bump Standards-Version to 3.9.4 * Switch to dpkg-source 3.0 (quilt) format, and split up the patches as follows: - 01_strip_trailing_whitespace.diff - 02_fix_compiler_warnings.diff - 03_add_full_path_to_lunar_bitmap.diff - 04_add_big5_and_utf8_output.diff - 05_fix_output_on_year_2033.diff - 06_use_locale_and_current_date.diff - 07_fix_segfault_aggressive-loop-optimizations.diff - 10_complete_the_makefile.diff - 20_update_man_page.diff * Convert debian/copyright to machine-readable format * Move to dh9-style minimal rules file * Remove explicit compilation target from Makefile (Lintian: W: lunar: hardening-no-relro usr/bin/lunar) * Add "Depends: ${misc:Depends} (Lintian: W: lunar source: debhelper-but-no-misc-depends lunar) * Update upstream URL to the archived copy found on * Add debian/watch (Lintian: I: lunar source: debian-watch-file-is-missing) * Update man page to reflect the new options added to this Debian version of Lunar. Thanks to Jidanni for the suggestion! (Closes: #514069)

    2008-10-05 - LI Daobing <> lunar (2.2-3.1) unstable; urgency=low * Non-maintainer upload. * FIX: lunar-2.2 wrong output on year 2033 (Closes: #366918)

    2006-01-04 - Anthony Fok <> lunar (2.2-3) unstable; urgency=low * Added --utf8 option. (Closes: Bug#288170) * Updated Standards-Version: 3.6.2 * [lunar.c]: Added "#include <stdlib.h>" to remove compiler warnings.

    2002-10-19 - Anthony Fok <> lunar (2.2-2) unstable; urgency=medium * Oops, I forgot to install lunar.bitmap and to specify its full path in the source code! Many thanks to Jeronimo Pellegrini for providing the patch to fix the problem. (Closes: Bug#162634)

    2002-09-22 - Anthony Fok <> lunar (2.2-1) unstable; urgency=low * Initial Release. * Added Big5 output in addition to the original Hanzi (GB) output.