Skip to content

Support parsing quarters of the year like 2025Q02 #1254

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

Open
amotl opened this issue Feb 23, 2025 · 1 comment
Open

Support parsing quarters of the year like 2025Q02 #1254

amotl opened this issue Feb 23, 2025 · 1 comment

Comments

@amotl
Copy link

amotl commented Feb 23, 2025

Hi, thank you so much for conceiving this excellent library, dateparser is awesome.

We are just having the need to parse date strings like 2025Q01, 2025Q02, and so forth. Maybe parsing them could be a valuable addition to dateparser, when possible?

@amotl amotl changed the title Support year quarters Support year quarters like 2025Q02 Feb 23, 2025
@amotl amotl changed the title Support year quarters like 2025Q02 Support parsing quarters of the year like 2025Q02 Feb 23, 2025
@amotl
Copy link
Author

amotl commented Feb 23, 2025

It looks like the fiscalyear library could help here.

>>> import fiscalyear
>>>
>>> q = fiscalyear.FiscalQuarter(2025, 3)
>>>
>>> q.start
FiscalDateTime(2025, 4, 1, 0, 0)
>>>
>>> q.end
FiscalDateTime(2025, 6, 30, 23, 59, 59)

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