-
Notifications
You must be signed in to change notification settings - Fork 33
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
strptime() should assume the current year if no year is specified #48
Comments
That's not a bad idea. 1970 was only added because originally it was left null if there was no year....and it really blew up then! |
In my code I just manually append the current year and add It would be best if |
Any updates on this? |
Not at the moment but it will be in the next release. |
Just doing a quick ping on this to see if there is anything I can do to help it along. |
When using
strptime()
to process a string if the string does not contain a year, 1970 is assumed. It makes more sense to assume the current year. Anyone parsing a date string without a year will most likely be pulling from current years logs.Here is a quick test case that exhibits this behavior.
Outputs:
'Mar 13 14:54:27' maps to 6216867 / 1970
The text was updated successfully, but these errors were encountered: