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