Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for parsing fractional minutes #1186

Open
daveisfera opened this issue Sep 20, 2023 · 2 comments
Open

Support for parsing fractional minutes #1186

daveisfera opened this issue Sep 20, 2023 · 2 comments

Comments

@daveisfera
Copy link

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)
@nots1dd
Copy link

nots1dd commented Oct 4, 2023

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.

@Gallaecio
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants