scrapinghub / dateparser

python parser for human readable dates
BSD 3-Clause "New" or "Revised" License
2.57k stars 465 forks source link

Suggestion: parse string like, "last monday" #1177

Open getorca opened 1 year ago

getorca commented 1 year ago

suggestion support parsing strings like "last monday", "next monday"

QAbot-zh commented 1 year ago

Yes, I really need a feature like this.

getorca commented 1 year ago

If I go back to what I was using it for, I'll look at implementing it.

QAbot-zh commented 1 year ago

Now I use ChatGPT's API to implement a memo feature that helps me extract both the time and event from the input text. Its accuracy is very high. Of course, if it can be implemented using a local library, it is certainly more efficient.

wasertech commented 9 months ago

https://github.com/facebook/duckling

rnv812 commented 3 months ago

Hi. Are there any updates for this suggestion?

philion commented 1 month ago

I was just looking for this feature myself: "next tuesday 9am", etc.

Strangely, "next week 9am" works great for 7 days.

I'll take a look at implementing and adding some tests.

UPDATE: No, I won't be able to work on this. RuntimeError: Failed to find libFuzzer; you may be building using Apple Clang. Apple Clang does not come with libFuzzer. A little research tells me Atheris doesn't build on apple hardware.