1
- Metadata-Version: 1.0
1
+ Metadata-Version: 1.1
2
2
Name: lunardate
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
Summary: 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
6
6
Author: LI Daobing
7
7
8
8
License: GPLv3
@@ -14,60 +14,56 @@ Description:
14
14
15
15
Usage
16
16
-----
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
29
29
30
- >>> today = LunarDate.today()
31
- >>> type(today).__name__
32
- 'LunarDate'
30
+ >>> today = LunarDate.today()
31
+ >>> type(today).__name__
32
+ 'LunarDate'
33
33
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
71
67
72
68
Limits
73
69
------
@@ -78,9 +74,9 @@ Description:
78
74
--------
79
75
80
76
* 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.
82
78
* 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.
84
80
85
81
Platform: UNKNOWN
86
82
Classifier: Development Status :: 4 - Beta
0 commit comments