scrapinghub / dateparser

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

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

Closed sm-ghavami closed 1 year ago

sm-ghavami commented 1 year 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 1 year 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 1 year ago

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