-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Dates ending with Z timezone not recognized if there is no millisecond #37
Comments
@rawouter: nice eye It looks like the regex parser is expecting a microsecond too. Not sure if the microsecond is a required part of In [1]: import datefinder
In [2]: list(datefinder.find_dates('INFO[2017-02-03T09:04:08.023423Z] Done job'))
Out[2]: [datetime.datetime(2017, 2, 3, 9, 4, 8)] |
Thanks for your fast reply, I'm not an ISO 8601 pro so I'll leave it up to you, but indeed if the parser can be flexible enough that would be great ;-) Talking about microsecond, I'm dealing with very nasty all kind of logs; these also fail I can also open an other issue if you want:
--> missing the .958 |
thanks, that's good to know also |
Proposing a fix for issues I discovered, please have a look at #38 for more details. Thanks! |
Let me start with: this is exactly the module I was looking for, thanks a lot!
I'm having an annoying bug however, I have dates ending the with "Z" keyword for the timezone, which is ISO 8601 compliant but the module fails to parse it:
The text was updated successfully, but these errors were encountered: