Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing range of month #1209

Open
amirhosein-darmani opened this issue Jan 7, 2024 · 0 comments
Open

changing range of month #1209

amirhosein-darmani opened this issue Jan 7, 2024 · 0 comments

Comments

@amirhosein-darmani
Copy link

Hi, I want to search for dates in phrases but in Persian language which use Jalali calendar.
Because Jalali calendar does not work for searching longer chunks of texts, I changed the translation data in this format:
I changed the months name in gregorian calendar without changing the calendar from gregorian to Jalali.
I also change the relative_base date to the current time in Jalali calendar (again without changing the calendar from gregorian to Jalali).

Everything works well except that in Jalali calendar length of month differ from those on Gregorian calendar. For example February has 28,29 days in Gregorian but 'اردیبهشت' which is equal to Feb has 31 days in Jalali calendar.
How can I fix that?
Precisely, I want to change length of month in gregorian calendar in this format:
first 6 months (Jan to Jun): has 31 days
next 5 months (Jul to Nov): 30 days
Dec: 29 days

very kind regards for any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant