Hi friends.
With datetime.datetime.now() or datetime.datetime.today() i can get the current date (English calendar) for my program but what about if i want to get the current date (from Persian calendar) for my program; then what should i do? As my pc os date is set to English calendar so what can i do?

Recommended Answers

The standard Datetime and Calendar classes only work with Gregorian calendar dates; however, after some searching I did find a

Jump to Post

All 2 Replies

The standard Datetime and Calendar classes only work with Gregorian calendar dates; however, after some searching I did find a project on Sourceforge for a multi-calendar utility module for Python, and it does specifically include the Persian calendar. Assuming it works, that may be what you need.

Thank you @Schol-R-LEA.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.