Support for parsing fractional minutes
daveisfera opened this issue · comments
Dave Johansen commented
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)
s1dd commented
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.
Adrián Chaves commented
Feel free to open a PR, no need to get assigned.