Namespaces
Variants
Actions

Talk:c/chrono/strftime

From cppreference.com
< Talk:c‎ | chrono

[edit] Example

The output includes "EST". Does the code need "%Z"? Newatthis (talk) 03:25, 6 May 2015 (PDT)

no, that is the actual output of that program. --Cubbi (talk) 03:33, 6 May 2015 (PDT)

[edit] References

I think the reference given for C89/90 may be wrong: The section number should be 7.12.3.5, not 4.12.3.5. At least that's the section number in the corresponding ANSI standard, ANSI/ISO 9899-1990, which statemes in its foreword that the "document is identical to ISO/IEC 9899:1990" except for the title pages and the first paragraph of the foreword.

Could the 4.12.3.5 be from ANSI X3.159-1989, which was later revised(!) and redesignated? 2A0A:A546:3AF8:0:5177:A427:3E1F:89D0 15:26, 25 July 2021 (PDT)

Nope, the "4." in §4.12.3.5 is correct. Below is an excerpt from C89:
4.12.3.5 The strftime function
 
Synopsis
 
         #include <time.h>
         size_t strftime(char *s, size_t maxsize,
                  const char *format, const struct tm *timeptr);
 
Description
...
--Space Mission (talk) 00:47, 26 July 2021 (PDT)
They are right though, section 4 Library in ANSI C89 became section 7 Library in ISO C90, because ISO had to add Scope, References, and Terms before all else. That numbering carried over into C99 an up. It doesn't matter all that much, I think. --Cubbi (talk) 13:17, 28 July 2021 (PDT)