A Chinese Calendar Library in Pure Python
Project description
Chinese Calendar: http://en.wikipedia.org/wiki/Chinese_calendar
Usage
>>> LunarDate.fromSolarDate(1976, 10, 1) LunarDate(1976, 8, 8, 1) >>> LunarDate(1976, 8, 8, 1).toSolarDate() datetime.date(1976, 10, 1) >>> LunarDate(1976, 8, 8, 1).year 1976 >>> LunarDate(1976, 8, 8, 1).month 8 >>> LunarDate(1976, 8, 8, 1).day 8 >>> LunarDate(1976, 8, 8, 1).isLeapMonth True >>>
News
0.1.3: support python 3.0
Limits
this library can only deal with year from 1900 to 2050 (in chinese calendar).
See also
lunar: http://packages.qa.debian.org/l/lunar.html, A converter written in C, this program is derived from it.
python-lunar: http://code.google.com/p/liblunar/ Another library written in C, including a python binding.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lunardate-0.1.3.tar.gz
(3.6 kB
view hashes)
Built Distributions
lunardate-0.1.3-py2.6.egg
(7.6 kB
view hashes)
lunardate-0.1.3-py2.5.egg
(7.6 kB
view hashes)