Skip to content

Commit

Permalink
update egg_info
Browse files Browse the repository at this point in the history
git-svn-id: https://python-lunardate.googlecode.com/svn/trunk@24 163cbbfe-8dd1-11dd-aa62-cdabd1f4ca1e
  • Loading branch information
lidaobing committed Dec 3, 2008
1 parent 467de81 commit 7cbb119
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions lunardate.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: lunardate
Version: 0.1.3
Version: 0.1.4
Summary: A Chinese Calendar Library in Pure Python
Home-page: http://code.google.com/p/python-lunardate
Author: LI Daobing
Expand All @@ -26,17 +26,53 @@ Description:
8
>>> LunarDate(1976, 8, 8, 1).isLeapMonth
True
>>>

>>> today = LunarDate.today()
>>> type(today).__name__
'LunarDate'

>>> # support '+' and '-' between datetime.date and datetime.timedelta
>>> ld = LunarDate(1976,8,8)
>>> sd = datetime.date(2008,1,1)
>>> td = datetime.timedelta(days=10)
>>> ld-ld
datetime.timedelta(0)
>>> ld-sd
datetime.timedelta(-11444)
>>> ld-td
LunarDate(1976, 7, 27, 0)
>>> sd-ld
datetime.timedelta(11444)
>>> ld+td
LunarDate(1976, 8, 18, 0)
>>> td+ld
LunarDate(1976, 8, 18, 0)
>>> ld2 = LunarDate.today()
>>> ld < ld2
True
>>> ld <= ld2
True
>>> ld > ld2
False
>>> ld >= ld2
False
>>> ld == ld2
False
>>> ld != ld2
True
>>> 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 2050 (in chinese calendar).
this library can only deal with year from 1900 to 2049 (in chinese calendar).

See also
--------
Expand Down

0 comments on commit 7cbb119

Please sign in to comment.