scrapinghub / scrapinghub/dateparser

Feature request: add PREFER_TIME_OF_DAY in settings

Open
#802 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.