Adding Jalali support in Calendar

Hi there.
I need to implement Jalali(Persian/Iranian) calendar support in openemr and hopefully contribute to the community. I have looked at the code and it seems everything about date and time and calendar is handled in /interface/main/calendar (correct me if I’m wrong). unfortunately there is a lot of code there and not very clear documentation. I just need to know whether there are clear uses of this module in open emr, essentially is this module used as a well-defined API? if so what are the end points and what methods should I provide and what arguments should I accept to develop my own calendar with Jalali support and use. I just need hints to find out what functionalities I should provide and I can handle the rest.
Thanks in advance for any help or suggestion

Hi Ali
Have you found a way for implementing the Jalali calendar?
I need the same thing and willing to spend some time on it and have some programming experience.