dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

Suggestion: parse string like, "last monday"

Open getorca opened this issue 2 years ago • 7 comments

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

getorca avatar Aug 16 '23 00:08 getorca

Yes, I really need a feature like this.

QAbot-zh avatar Sep 09 '23 01:09 QAbot-zh

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

getorca avatar Sep 13 '23 23:09 getorca

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.

QAbot-zh avatar Sep 14 '23 02:09 QAbot-zh

https://github.com/facebook/duckling

wasertech avatar Feb 20 '24 15:02 wasertech

Hi. Are there any updates for this suggestion?

rnv812 avatar Aug 18 '24 06:08 rnv812

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.

philion avatar Oct 17 '24 23:10 philion

No way this hasn't been implemented yet

Sasikuttan2163 avatar Jun 08 '25 02:06 Sasikuttan2163