scrapinghub / scrapinghub/dateparser

[days of the week/month] Next Sunday at 5am, Past Friday at 22h

Open
#1,147 0 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

These are the most intuitive ways of describing time, but yet the library can't parse these. is there any way we could implement these in the future ?

[next/past] [dayName] at [time]
and
[dayNum/dayName] of the [next/past] [week/month/MonthName] at [time]

Examples:
monday of the next month at noon
1st monday of the past month at 4pm
2nd sunday of the past month at 20h:33
next wednesday at 2 pm
past sunday at 5 am

Thank you

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

The issue names no files, tests, or entry points. Start by reviewing the existing dateparser syntax and deciding how the requested next/past weekday and ordinal week-of-month forms should behave; done means the listed examples are parsed consistently, including their time expressions.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.