Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for 'by <time>' #839

Merged
merged 1 commit into from
Nov 24, 2020
Merged

add support for 'by <time>' #839

merged 1 commit into from
Nov 24, 2020

Conversation

noviluni
Copy link
Collaborator

Add support for expressions like "tomorrow by 9pm" or "Tuesday by 9pm".

closes: #838

@codecov
Copy link

codecov bot commented Nov 22, 2020

Codecov Report

Merging #839 (64bee31) into master (939e722) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #839   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files         231      231           
  Lines        2590     2590           
=======================================
  Hits         2547     2547           
  Misses         43       43           
Impacted Files Coverage Δ
dateparser/data/date_translation_data/en.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 939e722...64bee31. Read the comment docs.

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@@ -1,4 +1,4 @@
skip: ["at", "on", "and", "ad", "m", "of", "st", "nd", "rd", "th", "about", "the", "just"]
skip: ["at", "by", "on", "and", "ad", "m", "of", "st", "nd", "rd", "th", "about", "the", "just"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💄 Should we also take the chance to sort them alphabetically?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just created a new PR to handle this: #844

@noviluni noviluni merged commit 6fb6e37 into master Nov 24, 2020
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.

Add support for by <time> in relative parser
3 participants