fuzzytime icon indicating copy to clipboard operation
fuzzytime copied to clipboard

Parsing things like "yesterday"

Open LeonB opened this issue 8 years ago • 3 comments

Would parsing thing like "yesterday" and "previous month" be something that's in the scope of this project?

LeonB avatar Jun 30 '17 13:06 LeonB

I'd love it if this was added

irth avatar Jun 30 '17 14:06 irth

It's definitely in scope, but probably not something I'm looking at doing myself any time soon. But I'm happy to take patches ;- )

I know there are definitely some python packages which do this, and I'm sure there are ones for other languages too. So it'd make sense to check them out and see what forms they handle.

I think I'd probably also prefer that it not default behaviour, but instead enabled via some sort of switch. One of the intentions of fuzzytime was to pick dates out of blocks of text, where there's a strong possibility of "yesterday", "previous month" etc appearing in ways you don't want to pick up as a date...

bcampbell avatar Jul 03 '17 10:07 bcampbell

awesome.

There's when which on the other hand doesn't support exact dates (like "2016-08-02". It can be used as reference :)

Might look into implementing some of this when I'm done with my current side project. (If my golang skills are enough for that)

irth avatar Jul 05 '17 21:07 irth