scrapinghub / scrapinghub/dateparser
Add support for time ranges
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
Why?
A lot of use cases for date parsing may include the need to understand date ranges. Natural language search by date may need to parse input as a time span.
Like interpreting "yesterday" as 2021.6.21 00:01 to 2021.6.21 23:60, instead of 2021.6.21 18:40.
Examples
- Next week
- Yesterday
- This year
- Next winter
- This evening
- Yesterday evening to Tomorrow morning
- Monday to Friday
Implementation
Maybe it can be a parser setting. It can be implemented something like this: parse('yesterday', settings={'DATE_RANGE': True}).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points; start by locating the parser API and its existing settings handling. Before implementation, clarify range semantics for the listed examples and identify tests that can verify the supported inputs and resulting time spans.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100