scrapinghub / scrapinghub/dateparser
Feature request: add PREFER_TIME_OF_DAY in settings
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
Hi,
Thank you for this great project --we find it quite useful for our conversational AI projects.
Let me explain the feature I'm suggesting: In current / default behavior, when time is missing it is interpreted as the current time of day. A flag in settings called PREFER_TIME_OF_DAY might be useful just like PREFER_DAY_OF_MONTH. For example, a date string tomorrow is parsed as 24 hours from now. With PREFER_TIME_OF_DAY introduced, it can be parsed as a preferred time of day (e.g., 9:00 a.m.).
Thanks.
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
Start by tracing the existing settings implementation and tests for PREFER_DAY_OF_MONTH. Determine where missing times are resolved and how a preferred time-of-day setting should interact with the current default behavior. Done means the new setting is supported, documented by tests, and preserves existing behavior when it is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100