click-datetime icon indicating copy to clipboard operation
click-datetime copied to clipboard

Consider dateutil parser?

Open bdillahu opened this issue 8 years ago • 2 comments

Just as a thought/suggestion... maybe consider using python-dateutil parser so that, instead of having to define a format, it can "guess" one... I've found it to be pretty accurate.

https://dateutil.readthedocs.io/en/stable/parser.html

Thanks for this regardless... was already a big timesaver!

bdillahu avatar Feb 27 '17 04:02 bdillahu

+1 for this. Dateutil is much more versatile than standard datetime. Thank you for this!

liiight avatar May 02 '17 04:05 liiight

Or, for absolutely over-the-top date/time parsing: https://dateparser.readthedocs.io/en/latest/. This provides a best-guess without having to specify a format ahead of time

Might want to add as an extra requirement though (eg pip install click-datetime[parser])

EpicWink avatar Jan 03 '20 11:01 EpicWink

I am going to close this because I don't want to add more dependencies to this package. I think this should be a new package, like click-dateutil or click-dateparser.

ddaws avatar Sep 09 '24 23:09 ddaws