Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/younisshah/hijri
hijri is a small helper library to convert a Hijri date to a Gregorian date according to Ummul Qura calendar.
https://github.com/younisshah/hijri
calendar dates golang hijri-calendar
Last synced: 14 days ago
JSON representation
hijri is a small helper library to convert a Hijri date to a Gregorian date according to Ummul Qura calendar.
- Host: GitHub
- URL: https://github.com/younisshah/hijri
- Owner: younisshah
- Created: 2017-11-30T06:44:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T09:18:20.000Z (about 7 years ago)
- Last Synced: 2024-06-20T09:08:53.304Z (8 months ago)
- Topics: calendar, dates, golang, hijri-calendar
- Language: Go
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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 [موقع تقويم أم القرى](http://www.ummulqura.org.sa/) 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
go get github.com/younisshah/hijri
```# Usage
```go
gregorianDate := hijri.HijriToGregorian(1439, 3, 12)
// ...
```# License
MIT