An open API service indexing awesome lists of open source software.

https://github.com/dc0d/persian-calendar


https://github.com/dc0d/persian-calendar

golang persian-calendar

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# persian-calendar

[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT) [![Go Reference](https://pkg.go.dev/badge/github.com/dc0d/persian-calendar.svg)](https://pkg.go.dev/github.com/dc0d/persian-calendar) [![Go Report Card](https://goreportcard.com/badge/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.