Xavier de Gaye added the comment: Here is the result of running on android:
<script> import datetime for y in (1904, 1906, 2008, 1917): for i in range(25, 32): print(datetime.date(y, 12, i).strftime('%Y %U %w %G %V %u')) print() for i in range(1, 10): print(datetime.date(y + 1, 1, i).strftime('%Y %U %w %G %V %u')) print('=====================') <script> root@generic_x86:/data/local/tmp # python strftime.py 1904 52 0 1904 51 7 1904 52 1 1904 52 1 1904 52 2 1904 52 2 1904 52 3 1904 52 3 1904 52 4 1904 52 4 1904 52 5 1904 52 5 1904 52 6 1904 52 6 1905 01 0 1904 53 7 1905 01 1 1905 01 1 1905 01 2 1905 01 2 1905 01 3 1905 01 3 1905 01 4 1905 01 4 1905 01 5 1905 01 5 1905 01 6 1905 01 6 1905 02 0 1905 01 7 1905 02 1 1905 02 1 ===================== 1906 51 2 1906 52 2 1906 51 3 1906 52 3 1906 51 4 1906 52 4 1906 51 5 1906 52 5 1906 51 6 1906 52 6 1906 52 0 1906 52 7 1906 52 1 1907 53 1 1907 00 2 1907 01 2 1907 00 3 1907 01 3 1907 00 4 1907 01 4 1907 00 5 1907 01 5 1907 00 6 1907 01 6 1907 01 0 1907 01 7 1907 01 1 1907 02 1 1907 01 2 1907 02 2 1907 01 3 1907 02 3 ===================== 2008 51 4 2008 52 4 2008 51 5 2008 52 5 2008 51 6 2008 52 6 2008 52 0 2008 52 7 2008 52 1 2009 53 1 2008 52 2 2009 53 2 2008 52 3 2009 53 3 2009 00 4 2009 01 4 2009 00 5 2009 01 5 2009 00 6 2009 01 6 2009 01 0 2009 01 7 2009 01 1 2009 02 1 2009 01 2 2009 02 2 2009 01 3 2009 02 3 2009 01 4 2009 02 4 2009 01 5 2009 02 5 ===================== 1917 51 2 1917 52 2 1917 51 3 1917 52 3 1917 51 4 1917 52 4 1917 51 5 1917 52 5 1917 51 6 1917 52 6 1917 52 0 1917 52 7 1917 52 1 1918 53 1 1918 00 2 1918 01 2 1918 00 3 1918 01 3 1918 00 4 1918 01 4 1918 00 5 1918 01 5 1918 00 6 1918 01 6 1918 01 0 1918 01 7 1918 01 1 1918 02 1 1918 01 2 1918 02 2 1918 01 3 1918 02 3 ===================== ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26929> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com