scrapinghub / dateparser

python parser for human readable dates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for parsing fractional minutes

daveisfera opened this issue · 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)
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.

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