19 Jul
2022
19 Jul
'22
4:38 a.m.
On 2022-07-18 16:03, Paul Eggert wrote:
and lines 1 and 5 are wrong.
Thanks for these examples! The semantics of strftime() is a matter of the C standard only, hence the result is not required to depend on members like .tm_gmtoff or .tm_zone which are not required by C (but it could depend on the exact value of .tm_isdst). And POSIX seems to say that their struct tm and strftime() are compliant with C18. So it is perhaps a bit too harsh to say that AIX and Solaris are wrong -- they do not seem to violate a requirement of C. Michael Deckers.