dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

Support for parsing fractional minutes

Open daveisfera opened this issue 2 years ago • 2 comments

Writing the minutes with a fractional value rather than writing out seconds is not a common way to specify time, but it does happen

Here's an example:

>>> import dateparser
>>> dateparser.parse("9/11/2023 03:25.5")
>>> 

For what it's worth, python-dateutil support parsing it:

>>> from dateutil.parser import parse as parse_date
>>> parse_date("9/11/2023 03:25.5")
datetime.datetime(2023, 9, 11, 3, 25, 30)

daveisfera avatar Sep 20 '23 20:09 daveisfera

Hey I would like to be assigned this task as I believe I have a possible solution to this, without using dateutil library of course.

nots1dd avatar Oct 04 '23 15:10 nots1dd

Feel free to open a PR, no need to get assigned.

Gallaecio avatar Oct 04 '23 16:10 Gallaecio