Umm al-Qura Hijri Date
Playing with Javascript

Displaying Gregorian and Hijri today’s date in Arabic format with [1] moment.js and [2] moment-hijri.js in browser:- JS HTML CSS Result <!-- 1- Load the moment-with-locales --> <script src="/jquery/dist/jquery.min.js"></script> <script src="/moment/min/moment-with-locales.min.js"></script> <script src="/moment-hijri/moment-hijri.js"></script> <script> // 2- Set the global locale to `ar-SA` moment.locale('ar-SA'); var m = moment(); // 3- use it normally: ١٤٣٧/٨/١٧هـ الموافق ٢٠١٦/٥/٢٤م //h = m.format('iYYYY/iM/iDهـ الموافق YYYY/M/Dم'); hijri = m.format('iD iMMMM iYYYYهـ'); gr = m.format('LL'); day = m.

i3wm With Conky-i3bar-JSON
Desktop View. Well, not really a desktop. It's a Window Manager.

The [i3bar] located at the bottom of the desktop is filled with status (system information) piped from [conky] via JSON. Among the item shown in the i3bar is the Hijri date obtained from a python package called 'Umalqurra'. I tweaked a bit the original python codes and modified the date and year in Hijri so that it displays the date in full arabic format. Listed below are the edited files related to the ‘Umalqurra’ package:-\


from umalqurra.hijri_date import HijriDate #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.


# -*- coding: utf-8 -*- ''' This is an API for Hijri Umalqurra Calendar, it was developed by khalid Al-hussayen 1436-3-15 2015-1-6. The algorithm of converting hijri to Gregorian is in hijri.py This Api will give the ability to convert Gregorian To Hijri or Hijri to Gregorian with the day and month names in Hijri and Gregorian You can query for the current day in both Hijri and Gregorian ''' __author__ = 'Khalid & Borni' __modified_and_spelling_corrected_by__ = 'Raihan' from ummalqura.


import math from ummalqura.ummalqura_arrray import UmalqurraArray ''' This class is responsoble to convert from Hijri to Gregorian or from Gregorian to Hijri The algorithm was converted from java script to python by Khalid Al-hussayen in 1436-3-14 2015-1-5 The orjinal source developed by Suhail Alkowaileet the source url https://github.com/xsoh/Hijri.js/blob/master/Hijri.js ''' class Umalqurra: def gregorian_to_hijri(self, year, month, day): # This code the modified version of R.H. van Gent Code, it can be found at http://www.