Message264768
| Author |
xdegaye |
| Recipients |
Alex.Willmer, belopolsky, lemburg, serhiy.storchaka, xdegaye |
| Date |
2016年05月03日.21:08:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1462309708.28.0.406831463479.issue26929@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|