Skip to content

Add support for "\d units later"#1154

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

Add support for "\d units later"#1154
serhii73 merged 1 commit intoscrapinghub: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

@RadhiFadlillah RadhiFadlillah deleted the unit-later branch March 16, 2023 14:04
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