idate.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from ummalqura.hijri_date import HijriDate
from datetime import date

hijri = 'ﻫ'

#create the object with Gregorian date
um = HijriDate.today()

#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 digit in Hijri/arabic
um.day_name #١٥

#day in english
um.day_name_en #Tuesday

#month in Hijri/arabic
um.month_name

#year digit in Hijri/arabic
um.year_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

#print(um.day_name, '/', um.month_name, '/', um.year_name, '|')
#print(um.day_name, um.month_name, um.year_name, hijri)
print(um.day_name, um.month_name, um.year_name)



Kali terakhir halaman ini dikemaskini/disemak semula adalah pada .
Top