Strftime's alpha-sorted man page vs. well-meaning people
The issue raised in this article is extremely tenuous.<p>The &quot;Linux Programmer&#x27;s Manual&quot; man page from the Linux documentation project has it as:<p><pre><code>       %G     The ISO 8601 week-based year (see NOTES) with century as a deci‐
              mal number.  The 4-digit year corresponding to the ISO week num‐
              ber (see %V).  This has the same format and value as %Y,  except
              that  if  the  ISO  week  number belongs to the previous or next
              year, that year is used instead. (TZ)
</code></pre>
This clearly says &quot;%G is some ISO nonsense you don&#x27;t want to be using&quot;.<p>But the &quot;week-based year&quot; alone should alert you that something is wrong. Because, like, the year that you know is not week-based! There aren&#x27;t exactly 52 weeks in a year: 365 isn&#x27;t divisible by 7, and if it were, then 366 wouldn&#x27;t be.<p>A (see NOTES) is also alarming. Why do you have to see some notes about planting the year part of the date into a simple date string?<p>The glibc manual has it here:<a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;libc&#x2F;manual&#x2F;html_node&#x2F;Formatting-Calendar-Time.html#Formatting-Calendar-Time" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;libc&#x2F;manual&#x2F;html_node&#x2F;Formattin...</a>    It also makes it perfectly clear that this is something weird:<p><i>&quot;This has the same format and value as %y, except that if the ISO week number (see %V) belongs to the previous or next year, that year is used instead. This format was first standardized by ISO C99 and by POSIX.1-2001.&quot;</i><p><i>Three</i> warning labels here: ISO, C99 and POSIX 2001!<p>C99 itself gives it like this.<p><i>%G is replaced by the week-based year (see below) as a decimal number (e.g., 1997). [tm_year, tm_wday, tm_yday]</i><p>If you don&#x27;t &quot;see below&quot;, that is your problem, just like ignoring &quot;(see NOTES)&quot;. The &quot;see below&quot; paragraph has this:<p><i>%g, %G, and %V give values according to the ISO 8601 week-based year. In this system,
weeks begin on a Monday and week 1 of the year is the week that includes January 4th,
which is also the week that includes the first Thursday of the year, and is also the first
week that contains at least four days in the year. [... more explanation]</i>