scrapinghub / dateparser

python parser for human readable dates
BSD 3-Clause "New" or "Revised" License
2.5k stars 466 forks source link

support two-digit year in non-gregorian calendars #1187

Closed sm-ghavami closed 7 months ago

sm-ghavami commented 9 months ago

We had an issue with parsing two digit year in non-gregorian calendars. This PR will fix that issue and provide a fix for both jalali and hijri calendars.

sm-ghavami commented 9 months ago

The primary advantage of this approach over the Gregorian one is its customizability. Everyone can easily extend the parsers and override the handle_two_digit_year method to tailor it to their specific use cases.

sm-ghavami commented 7 months ago

@Gallaecio This PR has been approved but not merged yet. Could you check this please?