Closed mojixcoder closed 2 years ago
I have worked on the change str.replace
TODO (in strftime
method).
But I don't wanna push yet because it will be mixed with this pull request if I push my changes.
Is this PR gonna be merged soon? or is it possible to open two pull requests at the same time?
I have worked on the change str.replace TODO (in strftime method).
Good to hear!
But I don't wanna push yet because it will be mixed with this pull request if I push my changes. Is this PR gonna be merged soon? or is it possible to open two pull requests at the same time?
You can create a new PR for that change. Don't add that change to this patch.
Thanks for your contribution.
I couldn't find %E
directive in datetime docs. is it described in other docs %E
? We avoid adding additional directive to be compatible with the official module.
I think no we don't have since python doesn't have jalali dates.
@MojixCoder it seems that we can get the month in Persian by setting locale
in object creation.
Thanks @slashmili for clarification.
Yes we can do it, But for example in django-jalali
when we are using jalali template tags. It's not that easy to set locale
in templates. and it's also very common.
{% load jformat %}
{{ my_date|jformat:"%d %E %Y" }}
This is what I mean.
just for sake of prosperity we discussed it in #98 for Django case, you need to set it in as LANGUAGE_CODE
setting.
Now we have
%B
which gives usAzar
for example.I've added
%E
which gives usآذر
in this case.