Skip to content

Add support for "\d units later" - #1154

Merged
serhii73 merged 1 commit into
scrapinghub:masterfrom
RadhiFadlillah:unit-later
Mar 16, 2023
Merged

serhii73 merged 1 commit into
scrapinghub:masterfrom
RadhiFadlillah:unit-later

Conversation

@RadhiFadlillah

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

Nice.

@serhii73
serhii73 merged commit 4749e3e into scrapinghub:master Mar 16, 2023
@serhii73

Copy link
Copy Markdown
Collaborator

Thanks

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

Successfully merging this pull request may close these issues.

3 participants