Skip to content

workshop-depot/farsi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.