devel/py-convertdate 2.2.0_2 DragonFly
Converts between Gregorian dates and other calendar systems
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 62.4 KiB, 324.0 KiB installed
Description
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)
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-convertdate | 2.2.0_2 |
| FreeBSD | devel/py-convertdate | 2.2.0_2 |
| HardenedBSD | devel/py-convertdate | 2.2.0_2 |
| GhostBSD | devel/py-convertdate | 2.2.0_2 |
Install
Binary package:
pkg install py311-convertdate
From DPorts:
cd /usr/dports/devel/py-convertdate && make install clean
Dependencies
Run dependencies 3
No port depends on this one.