strftime %U, %V, and %W conversion specifiersThis issue has been automatically converted from the original issue lists and some formatting may not have been preserved.
Authors: Bill Plauger (US)
Date: 2000-04-10
Submitted against: C99
Status: Closed
Converted from: summary-c99.htm, dr_227.htm
In <time.h>, strftime conversion specifiers %U, %W, and %V do not need
tm_year.
Comment from WG14 on 2001-09-18:
The Standard is correct. tm_year is provided in the case %U and %W, to
give freedom to choose the implementation (the output can be determinded using
either tm_year or tm_wday, along with tm_yday). For %V it is definitely
required as the computation cannot be made without tm_year.