Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 745 Bytes

README.md

File metadata and controls

7 lines (5 loc) · 745 Bytes

farsi

This module will contain utilities to help with anything Farsi.

farsi/calendar

This package provides Persian Calendar Calculations for Go (golang). It separated from Roozh to make it go gettable. Roozh contains implementations for converting between Persian dates and Gregorian dates for JavaScript, Java and C# too.

Basically we just use two functions, PersianToGregorian and GregorianToPersian for conversion between calendars, because Go does not provide a way to describe a calendar other than Gregorian calendar, the default expected/assumed one by package time. It is based on the work of Kazimierz M. Borkowski.