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

parse parsing strings not matching date_formats #1020

Open
haphaeu opened this issue Nov 19, 2021 · 1 comment · May be fixed by #1141
Open

parse parsing strings not matching date_formats #1020

haphaeu opened this issue Nov 19, 2021 · 1 comment · May be fixed by #1141

Comments

@haphaeu
Copy link

haphaeu commented Nov 19, 2021

Is this a bug, an undocumented feature, or maybe I didn't ready the docs thoroughly enough ?=/

In: dp.parse('Time', date_formats=['%d.%m.%Y %H:%M'])
Out: datetime.datetime(2021, 11, 19, 0, 0)

In: dp.parse('(m)', date_formats=['%d.%m.%Y %H:%M'])
Out[58]: datetime.datetime(2021, 11, 19, 0, 0)

I'd expect this to return None to be consistent when date_string doesn't match any date_formats.

In : dp.parse('something', date_formats=['%d.%m.%Y %H:%M'])
Out: None

@RyanWalker277
Copy link

Hey @Gallaecio ! I would like to work on this one.

@RyanWalker277 RyanWalker277 linked a pull request Feb 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants