Drupal Hijri

Categories

Component ID

2849032

Component name

Drupal Hijri

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Drupal Hijri allows site admin to output dates in Hijri Calendar with/instead of Gregorian Calendar, It uses two calculation algorithms:
1- Um AlQura algorithm
2- Tabular Hijri algorithm

To output Hijri Calendar date format must edited and under score (_) must be added before the symbol you want to output Hijri
format character Description Example Output
_j Day of the hijri month without leading zeros 1 to 30 1-30
_d Day of the hijri month with leading zeros 01 to 30 01-30
_S English suffix for numbers (new in 2.3.0) st, nd ,th
_z The day of the year (starting from 0) 0-354
_F A full textual representation of a month, such as Muharram or Safar Muharram-Dhul Hijjah
_M A short textual representation of a month, three letters(in Arabic same as _F) Muh-Hij
_m Numeric representation of a month, with leading zeros 01-12
_n Numeric representation of a month, without leading zeros 1-12
_L Whether it's a leap year 1 if it is a leap year, 0 otherwise
_Y A full numeric representation of a year, 4 digits 1380 or 1436
_y A two digit representation of a year 80 or 36
These format character will overridden if langcode set to 'ar'
l, D A full textual representation of the day of the week in Arabic السبت-الجمعة
F A full textual representation of a month, Syrian Name كانون الثاني، شباط
M A full textual representation of a month, English translated يناير، فبراير
a Lowercase Ante meridiem and Post meridiem in Arabic ص ، م
A Full Ante meridiem and Post meridiem in Arabic صباحا ، مساء