https://github.com/dc0d/persian-calendar
https://github.com/dc0d/persian-calendar
golang persian-calendar
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dc0d/persian-calendar
- Owner: dc0d
- License: mit
- Created: 2020-05-28T19:47:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-13T20:37:26.000Z (over 4 years ago)
- Last Synced: 2025-01-20T14:57:25.835Z (9 months ago)
- Topics: golang, persian-calendar
- Language: Go
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# persian-calendar
[](http://opensource.org/licenses/MIT) [](https://pkg.go.dev/github.com/dc0d/persian-calendar) [](https://goreportcard.com/report/github.com/dc0d/persian-calendar)
This Go Module can be used for converting dates between Persian and Gregorian calendars. It is based on the work of English mathematician, [KAZIMIERZ M. BORKOWSKI](http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm), which is "Using the analytical theory of the motion of the Earth around the Sun the times of the vernal (Spring) equinox has been calculated over the period from the Hijra (AD 622) to AD 3800".
Some of test fixtures for Persian leap years are imported from [this repo](https://github.com/persiancal/official-data) and it's based on calculations from Geophysics Institute of University of Tehran.