+ /* Sunday week calculation */
+ MKTIME( timeptr, 0, 0, 0, 2, 0, 116, 6, 1 );
+ TESTCASE( strftime( buffer, 100, "%U ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "00 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 3, 0, 116, 0, 2 );
+ TESTCASE( strftime( buffer, 100, "%U ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "01 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 31, 11, 116, 6, 365 );
+ TESTCASE( strftime( buffer, 100, "%U ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "52 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 1, 0, 117, 0, 1 );
+ TESTCASE( strftime( buffer, 100, "%U ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "01 " ) == 0 );
+ /* Monday week calculation */
+ MKTIME( timeptr, 0, 0, 0, 3, 0, 116, 0, 2 );
+ TESTCASE( strftime( buffer, 100, "%W ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "00 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 4, 0, 116, 1, 3 );
+ TESTCASE( strftime( buffer, 100, "%W ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "01 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 31, 11, 116, 6, 365 );
+ TESTCASE( strftime( buffer, 100, "%W ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "52 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 1, 0, 117, 0, 1 );
+ TESTCASE( strftime( buffer, 100, "%W ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "00 " ) == 0 );
+ MKTIME( timeptr, 0, 0, 0, 2, 0, 117, 1, 2 );
+ TESTCASE( strftime( buffer, 100, "%W ", &timeptr ) == 3 );
+ TESTCASE( strcmp( buffer, "01 " ) == 0 );