Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 812 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 812 Bytes

hijri

hijri is a small helper library to convert a Hijri date to a Gregorian date according to Ummul Qura calendar.

It just exports one function HijriToGregorian which takes a Hijri year, month and a day and return the equivalent Gregorian date based on based on Ummul Qura موقع تقويم أم القرى calendar.

Please note the Islamic (Hijri) calendar system is a lunar calendar based on observation. The observation aspect of the calendar means that a new month can only be declared based on human observations of the moon, something which can obviously vary and is unsuited to computer calculation.

Install

go get github.com/younisshah/hijri

Usage

gregorianDate := hijri.HijriToGregorian(1439, 3, 12)
// ...

License

MIT