scrapinghub / scrapinghub/dateparser

Incomplete time

Open
#906 5 comments 0 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

Is it possible to have a similar functionality as PREFER_DAY_OF_MONTH': 'last'|'first' but for time?
The idea is I'd like to be able to define time ranges of entire months such as:
--from March --to March that would give me 01-Mar 00:00 to 31-Mar 23:59.

Currently with PREFER_DAY_OF_MONTH': 'last' I'm able to get 01-Mar 00:00 to 31-Mar 00:00, but that doesn't cover the full month.

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 how the PREFER_DAY_OF_MONTH setting and month-only ranges are handled in dateparser. Compare the current March-to-March result with the requested 01-Mar 00:00 through 31-Mar 23:59 behavior. Done means the new time-range behavior is covered by tests and preserves existing day-of-month handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.