1- Metadata-Version: 1.0
1+ Metadata-Version: 1.1
22Name: lunardate
3- Version: 0.1.4
3+ Version: 0.1.5
44Summary: A Chinese Calendar Library in Pure Python
5- Home-page: http ://code.google. com/p /python-lunardate
5+ Home-page: https ://github. com/lidaobing /python-lunardate
66Author: LI Daobing
77Author-email: lidaobing@gmail.com
88License: GPLv3
@@ -14,60 +14,56 @@ Description:
1414
1515 Usage
1616 -----
17- >>> LunarDate.fromSolarDate(1976, 10, 1)
18- LunarDate(1976, 8, 8, 1)
19- >>> LunarDate(1976, 8, 8, 1).toSolarDate()
20- datetime.date(1976, 10, 1)
21- >>> LunarDate(1976, 8, 8, 1).year
22- 1976
23- >>> LunarDate(1976, 8, 8, 1).month
24- 8
25- >>> LunarDate(1976, 8, 8, 1).day
26- 8
27- >>> LunarDate(1976, 8, 8, 1).isLeapMonth
28- True
17+ >>> LunarDate.fromSolarDate(1976, 10, 1)
18+ LunarDate(1976, 8, 8, 1)
19+ >>> LunarDate(1976, 8, 8, 1).toSolarDate()
20+ datetime.date(1976, 10, 1)
21+ >>> LunarDate(1976, 8, 8, 1).year
22+ 1976
23+ >>> LunarDate(1976, 8, 8, 1).month
24+ 8
25+ >>> LunarDate(1976, 8, 8, 1).day
26+ 8
27+ >>> LunarDate(1976, 8, 8, 1).isLeapMonth
28+ True
2929
30- >>> today = LunarDate.today()
31- >>> type(today).__name__
32- 'LunarDate'
30+ >>> today = LunarDate.today()
31+ >>> type(today).__name__
32+ 'LunarDate'
3333
34- >>> # support '+' and '-' between datetime.date and datetime.timedelta
35- >>> ld = LunarDate(1976,8,8)
36- >>> sd = datetime.date(2008,1,1)
37- >>> td = datetime.timedelta(days=10)
38- >>> ld-ld
39- datetime.timedelta(0)
40- >>> ld-sd
41- datetime.timedelta(-11444)
42- >>> ld-td
43- LunarDate(1976, 7, 27, 0)
44- >>> sd-ld
45- datetime.timedelta(11444)
46- >>> ld+td
47- LunarDate(1976, 8, 18, 0)
48- >>> td+ld
49- LunarDate(1976, 8, 18, 0)
50- >>> ld2 = LunarDate.today()
51- >>> ld < ld2
52- True
53- >>> ld <= ld2
54- True
55- >>> ld > ld2
56- False
57- >>> ld >= ld2
58- False
59- >>> ld == ld2
60- False
61- >>> ld != ld2
62- True
63- >>> ld == ld
64- True
65-
66- News
67- ----
68-
69- * 0.1.4: support '+', '-' and compare, fix bug in year 2050
70- * 0.1.3: support python 3.0
34+ >>> # support '+' and '-' between datetime.date and datetime.timedelta
35+ >>> ld = LunarDate(1976,8,8)
36+ >>> sd = datetime.date(2008,1,1)
37+ >>> td = datetime.timedelta(days=10)
38+ >>> ld-ld
39+ datetime.timedelta(0)
40+ >>> ld-sd
41+ datetime.timedelta(-11444)
42+ >>> ld-td
43+ LunarDate(1976, 7, 27, 0)
44+ >>> sd-ld
45+ datetime.timedelta(11444)
46+ >>> ld+td
47+ LunarDate(1976, 8, 18, 0)
48+ >>> td+ld
49+ LunarDate(1976, 8, 18, 0)
50+ >>> ld2 = LunarDate.today()
51+ >>> ld < ld2
52+ True
53+ >>> ld <= ld2
54+ True
55+ >>> ld > ld2
56+ False
57+ >>> ld >= ld2
58+ False
59+ >>> ld == ld2
60+ False
61+ >>> ld != ld2
62+ True
63+ >>> ld == ld
64+ True
65+ >>> LunarDate.today() == LunarDate.today()
66+ True
7167
7268 Limits
7369 ------
@@ -78,9 +74,9 @@ Description:
7874 --------
7975
8076 * lunar: http://packages.qa.debian.org/l/lunar.html,
81- A converter written in C, this program is derived from it.
77+ A converter written in C, this program is derived from it.
8278 * python-lunar: http://code.google.com/p/liblunar/
83- Another library written in C, including a python binding.
79+ Another library written in C, including a python binding.
8480
8581Platform: UNKNOWN
8682Classifier: Development Status :: 4 - Beta
0 commit comments