slashmili / python-jalali

Jalali calendar binding for Python based on Python's datetime module
http://pypi.python.org/pypi/jdatetime/
Other
335 stars 46 forks source link

feat(strptime):handle %z directive. #124

Closed Mojtaba-saf closed 2 years ago

Mojtaba-saf commented 2 years ago

Related to this issue. As I said there it can be done how Cpython is handling %z directive. so I added the pattern and remove %Z from it ( right now it still can't handle %Z). and in strptime added a timezone to create a timezone based on input timedelta.

hramezani commented 2 years ago

@Mojtaba-saf thanks for the patch. @slashmili thanks for mentioning me here. I am in a vacation and will return in two weeks. I will take a look if I have time in between

slashmili commented 2 years ago

Superb thanks!

hramezani commented 2 years ago

Thank @Mojtaba-saf and @hramezani for your great effort.