Skip to content

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

Notifications You must be signed in to change notification settings

younisshah/hijri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages