[New-bugs-announce] [issue10864] time.strftime("%Y"): limitation of 4 digits on OpenIndiana (Solaris)

STINNER Victor report at bugs.python.org
Sat Jan 8 03:43:17 CET 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

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].

----------
components: Library (Lib)
messages: 125744
nosy: haypo
priority: normal
severity: normal
status: open
title: time.strftime("%Y"): limitation of 4 digits on OpenIndiana (Solaris)
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10864>
_______________________________________


More information about the New-bugs-announce mailing list