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
time.strftime("%Y"): limitation of 4 digits on OpenIndiana (Solaris) #55073
Comments
The following example displays '2345' instead of '12345': import time
t = (12345,) + (0,)*8
print(repr(time.strftime("%Y", t))) time.strftime() should raise a ValueError if the year is bigger than 9999, as it is done with Visual Studio for year outside [1; 9999]. |
Oh, it's more funny with negative numbers: -1 is formatted '000/'. Let's try r87850. I'm now waiting for the buildbot. |
On my Mac it displays "12345". I don't see that as a big problem. If someone wants to feed a year > 9999 to time.strftime I don't see that |
The test pass on both OpenIndiana buildbots, so I close the issue.
Why do you say "problem"? It is the correct result :-) |
Skip> On my Mac it displays "12345". I don't see that as a big problem. haypo> Why do you say "problem"? It is the correct result :-) I agree. I interpreted your ticket as complaining that it should raise
|
Le samedi 08 janvier 2011 à 17:02 +0000, Skip Montanaro a écrit :
Only on OpenIndiana because on this specific OS, "%Y" only supoprts year |
New changeset d56eb817b181 by Victor Stinner in branch '3.2': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: