A package for converting Hijriah Calendar Day
Project description
Hijriah Date Converter
A package to convert between Hijri and Gregorian calendar date using the Umm al-Qura calendar.
Installation
Still work in progress
Features
- (Probably) supported ISO and another extendable date format
- Representation to string with formatted name of the month based on hijriah calendar
- Offset and limit range for both calendar
Usage
The usage itself is quite straightforward, just inputted the gregorian or hijri version of the calendar with something like:
from hijri.core import Hijriah
# convert gregorian calendary day into hijriah
>>> gregorian = Hijriah(23, 2, 2021)
>>> print(gregorian.to_hijri())
# convert hijriah calendar day into gregorian
>>> hijriah = Hijriah(1403, 2, 17)
>>> print(hijriah.to_gregorian())
# getting hijri based month for both calendar
>>> example = Hijriah(21, 2, 2009).get_hijri_month()
>>> print(example)
'Safar'
# converting into ISO format
>>> example = Hijriah.to_representation(21, 2, 2009, "ISO")
'2009/21/2'
Acknowledgment
For the calculation formula itself i adopted from several packages, especially with these two, Python Islamic Library and Hijri.js for accuracy itself, i don't know how accurate it is for calendar conversion.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hijri-calendar-0.1.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203fa3ea7c9067fb40d06b56efb10a70294d39b0fd171a4c95524a2e90b7e1dd |
|
MD5 | 67e7312ff2f34f080eabb37a4ee5093b |
|
BLAKE2b-256 | 257060cad81bc4bbaba16424d6760183019d962f1b7fa34303058a4a19f45b06 |
Close
Hashes for hijri_calendar-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 973e3e1f201159c4e330ad23b29f30367220260c3759640c955a8dceb80bdcca |
|
MD5 | f1a49cf5a48ca43ee79edafc527dee23 |
|
BLAKE2b-256 | ce9eb87a4594549a46eebc6b9b593c90dc16a42422e9bd471dd116d1e8161d35 |