Submitter: Bill Plauger (US)
Submission Date: 2000-04-10
Reference Document: N/A
Date: 2001-09-18 16:13:44
Subject: strftime %U, %V, and %W conversion specifiers.
In <time.h>, strftime conversion specifiers %U, %W, and %V do not need tm_year.
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.
Previous Defect Report < - > Next Defect Report