Golang - Convert hijri to gregorian date to get holidays (via an API or not)

337 views Asked by At

So I want to get Eid Al-Fitr (first three days of the month of the tenth month) and Eid Al-Adha(10-to-13th days of final month) in order to calculate the working days in countries e.g Turkey etc. And as Islamic calendar is a lunar one, it varies in every single Gregorian year. I'd prefer finding them with a piece of Go code rather than persisting their Gregorian equivalents for each year into a database.

How to do that with Go? It is also ok fetching them through a free api too.HolidayAPI seems to find it but only works for past years' data in free edition.

0

There are 0 answers