Python Hijri Umalqurra
Project description
Python Umalqurra Calender is an API that will give you the ability to convert Gregorian to Hijri and hijri to Gregorian it will give you the day name in arabic and english , and the month name in Hijri arabic and Gregorian.
Thanks for Khalid Al-hussayen : https://pypi.python.org/pypi/umalqurra/0.2
Features:
Convert Gregorian to Hijri
Convert Hijri to Gregorian
give the arabic name of the hijri month
give the english name of the gregorian month
give the day name in Arabic and English
give the current day both in Hijri and Gregorian
Usage
from ummalqura.hijri_date import HijriDate
#create the object with Gregorian date
um = HijriDate(1989,1,10,gr=True)
#to see the day in Hijri
um.day # result : 3.0
#to see the month in Hijri
um.month #result is 6.0
#year
um.year #1409
#day name in arabic
print (um.day_name) #الثلاثاء
#day in english
um.day_name_en #Tuesday
#month in Hijri Arabic
print (um.month_name) #جمادي الاخرة
#month in Gregorian English
um.month_name_gr #January
#year in Gregorian
um.year_gr #1989
#month in Gregorian
um.month_gr # 1
#day in Gregorian
um.day_gr # 10
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ummalqura-0.1.tar.gz
(9.5 kB
view details)
File details
Details for the file ummalqura-0.1.tar.gz.
File metadata
- Download URL: ummalqura-0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d9e263e1111aa94783a5ffc2eb7bb82f7763163c14d961c4a44a19960678af4
|
|
| MD5 |
ddc69cbb01fc83b110cd7103b45d1a68
|
|
| BLAKE2b-256 |
b003de48058e7e6f3c19b3ab66791374a9688e5e9bc020dc8d6e87511e395850
|