Functions

G2H (yg, mg, dg)

H2G (yh, mh, dh)

HijriGreg (DateIn, Hijri, UmmAlQura)

g_date (day, month, year)

h_date (day, month, year)

Details

Itl.G2H(yg, mg, dg)
Parameters:
  • yg (int) – Gregorian year

  • mg (int) – Gregorian month

  • dg (int) – Gregorian day

Returns:

Hijri date

Return type:

GLib.Date

Convert Gregorian date to Hijra date using Umm Ul-Qura algorithm

Itl.H2G(yh, mh, dh)
Parameters:
  • yh (int) – Hijri year

  • mh (int) – Hijri month

  • dh (int) – Hijri day

Returns:

Gregorian date

Return type:

GLib.Date

Convert Hijri date to Gregorian date using Umm Ul-Qura algorithm

Itl.HijriGreg(DateIn, Hijri, UmmAlQura)
Parameters:
  • DateIn (GLib.Date) – Date struct to convert

  • Hijri (bool) – DateIn date type; True=Hijri, False=Gregorian

  • UmmAlQura (bool) – True=Use Umm Al-Qura algorithm, False=otherwise

Returns:

Converted Date struct

Return type:

GLib.Date

Convert Hijri date to Gregorian date using Umm Ul-Qura algorithm

Itl.g_date(day, month, year)
Parameters:
  • day (int) – Hijri day

  • month (int) – Hijri month

  • year (int) – Hijri year

Returns:

Gregorian date

Return type:

GLib.Date

Convert Hijri date to Gregorian date

Itl.h_date(day, month, year)
Parameters:
  • day (int) – Gregorian day

  • month (int) – Gregorian month

  • year (int) – Gregorian year

Returns:

Hijri date

Return type:

GLib.Date

Convert Gregorian date to Hijra date