github.com/dc0d/persian-calendar (go): Package calendar 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 https://github.com/persiancal/official-data and it's based on calculations from Geophysics Institute of University of Tehran.
Keywords: golang|persian-calendar