<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>lunardate</name>
<shortdesc>A Chinese Calendar Library in Pure Python</shortdesc>
<description>A Chinese Calendar Library in Pure Python
=========================================

Chinese Calendar: http://en.wikipedia.org/wiki/Chinese_calendar

Usage
-----
        &gt;&gt;&gt; LunarDate.fromSolarDate(1976, 10, 1)
        LunarDate(1976, 8, 8, 1)
        &gt;&gt;&gt; LunarDate(1976, 8, 8, 1).toSolarDate()
        datetime.date(1976, 10, 1)
        &gt;&gt;&gt; LunarDate(1976, 8, 8, 1).year
        1976
        &gt;&gt;&gt; LunarDate(1976, 8, 8, 1).month
        8
        &gt;&gt;&gt; LunarDate(1976, 8, 8, 1).day
        8
        &gt;&gt;&gt; LunarDate(1976, 8, 8, 1).isLeapMonth
        True
        
        &gt;&gt;&gt; today = LunarDate.today()
        &gt;&gt;&gt; type(today).__name__
        'LunarDate'
        
        &gt;&gt;&gt; # support '+' and '-' between datetime.date and datetime.timedelta
        &gt;&gt;&gt; ld = LunarDate(1976,8,8)
        &gt;&gt;&gt; sd = datetime.date(2008,1,1)
        &gt;&gt;&gt; td = datetime.timedelta(days=10)
        &gt;&gt;&gt; ld-ld
        datetime.timedelta(0)
        &gt;&gt;&gt; ld-sd
        datetime.timedelta(-11444)
        &gt;&gt;&gt; ld-td
        LunarDate(1976, 7, 27, 0)
        &gt;&gt;&gt; sd-ld
        datetime.timedelta(11444)
        &gt;&gt;&gt; ld+td
        LunarDate(1976, 8, 18, 0)
        &gt;&gt;&gt; td+ld
        LunarDate(1976, 8, 18, 0)
        &gt;&gt;&gt; ld2 = LunarDate.today()
        &gt;&gt;&gt; ld &lt; ld2
        True
        &gt;&gt;&gt; ld &lt;= ld2
        True
        &gt;&gt;&gt; ld &gt; ld2
        False
        &gt;&gt;&gt; ld &gt;= ld2
        False
        &gt;&gt;&gt; ld == ld2
        False
        &gt;&gt;&gt; ld != ld2
        True
        &gt;&gt;&gt; ld == ld
        True

News
----

* 0.1.4: support '+', '-' and compare, fix bug in year 2050
* 0.1.3: support python 3.0
        
Limits
------

this library can only deal with year from 1900 to 2049 (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.</description>
<homepage rdf:resource="http://code.google.com/p/python-lunardate" />
<maintainer><foaf:Person><foaf:name>LI Daobing</foaf:name>
<foaf:mbox_sha1sum>9df53011a93436f891fb1ea85e22189671d6a3bd</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>0.1.4</revision></Version></release>
</Project></rdf:RDF>