pyCalverter (Python Calendar Converter) is a tool for python developers that need to use Persian(Jalali) or Hijri(Islamic) Calendar in their programs .
On the other side this tool can convert these calendars (hijri, jalahi, gregorian) together .
Please check the above two links.
Copy the file
calverter.py into your module
In the file
__init__.py import the file :
In your code re-import calverter using the path of your module and type :
cal = calverter.calverter() jd = cal.gregorian_to_jd(2014, 04 , 23) print jd print cal.jd_to_islamic(jd)
The outopu will be :
2456770.5 (1435, 6, 22)
I implemeted it for my module and it works well.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/23/14, 6:27 AM|
|Seen: 2728 times|
|Last updated: 3/16/15, 8:10 AM|