scrapinghub / dateparser

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

Add support for "\d units later" #1154

Closed RadhiFadlillah closed 1 year ago

RadhiFadlillah commented 1 year ago

Currently dateparser able to parse "5 hours ago", but unable to parse its opposite: "5 hours later". So, I created this PR to add support for "\d {unit}s later" in English language, where unit is all supported units by dateparser, i.e. year, decade, month, week, day, hour, minute and second.

Gallaecio commented 1 year ago

Nice.

serhii73 commented 1 year ago

Thanks