aboutsummaryrefslogtreecommitdiff
path: root/devel/py-convertdate/pkg-descr
blob: 20c9ce7b0d5cac61e46867d8c7079166465d43fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Converts between Gregorian dates and other calendar systems. Calendars include:

* Baha'i
* French Republican
* Hebrew
* Indian Civil
* Islamic
* ISO
* Julian
* Mayan
* Persian.

The holidays module also provides some useful holiday-calculation, with a focus
on North American and Jewish holidays. Note that in some calendar systems, the
day begins at sundown. Convertdate uses noon of the day in question.

from convertdate import french_republican
from convertdate import hebrew
french_republican.from_gregorian(2014, 10, 31)
# (223, 2, 1, 9)
hebrew.from_gregorian(2014, 10, 31)
# (5775, 8, 7)

WWW: https://github.com/fitnr/convertdate