[issue26929] android: test_strptime fails
Xavier de Gaye
report at bugs.python.org
Tue May 3 17:08:28 EDT 2016
Xavier de Gaye added the comment:
GNU libc says:
‘%V’
The ISO 8601:1988 week number as a decimal number (range ‘01’
through ‘53’). ISO weeks start with Monday and end with
Sunday. Week ‘01’ of a year is the first week which has the
majority of its days in that year; this is equivalent to the
week containing the year’s first Thursday, and it is also
equivalent to the week containing January 4. Week ‘01’ of a
year can contain days from the previous year. The week before
week ‘01’ of a year is the last week (‘52’ or ‘53’) of the
previous year even if it contains days from the new year.
This format was first standardized by POSIX.2-1992 and by
ISO C99.
So on 1905-1-1, %V should be 52 instead of 53 as printed by android; is this the only bug ?
A pretty good test to find such a mistake.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26929>
_______________________________________
More information about the Python-bugs-list
mailing list