Jalaali (Shamsi) calendar for elixir (Persian calendar)

Hello again,

I’ve been reading docs of Calendar on Elixir. and i have to say, i don’t get how to use it for calendar conversion! I also didn’t find any third party implementation of calendars that uses :calendar.

The Calendar behaviour does not provide any callbacks that forces every calendar implementation to provide a conversion to an ISO date or Unix Epoch. (does it?)

Maybe i didn’t get it!

i also have implemented Jalaali.Calendar (Based on Calendar.ISO) in here: https://github.com/alisinabh/elixir-jalaali/blob/calimpl/lib/jalaali/calendar.ex

What am i doing wrong? @josevalim

Thank you

1 Like