A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1533 ====================================================================== Reported By: steffen Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1533 Category: Base Definitions and Headers Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: steffen Organization: User Reference: Section: time.h Page Number: 425 Line Number: 14451 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2021-11-08 22:04 UTC Last Modified: 2021-11-22 10:12 UTC ====================================================================== Summary: struct tm: add tm_gmtoff (and tm_zone) field(s) ======================================================================
---------------------------------------------------------------------- (0005531) geoffclare (manager) - 2021-11-22 10:12 https://austingroupbugs.net/view.php?id=1533#c5531 ---------------------------------------------------------------------- I started wondering about where tm_zone points (since there is no function to free it), and came across this on the MacOS localtime(3) man page (under BUGS):<blockquote>The tm_zone field of a returned tm structure points to a static array of characters, which will also be overwritten by any subsequent calls (as well as by subsequent calls to tzset(3) and tzsetwall(3)).</blockquote>So perhaps what I wrote in my previous note about %Z using the old TZ is not true (at least for some implementations that support tm_zone). If we want to add tm_gmtoff and tm_zone, the standard will need to go into this kind of detail. Issue History Date Modified Username Field Change ====================================================================== 2021-11-08 22:04 steffen New Issue 2021-11-08 22:04 steffen Name => steffen 2021-11-08 22:04 steffen Section => time.h 2021-11-08 22:04 steffen Page Number => 425 2021-11-08 22:04 steffen Line Number => 14451 2021-11-21 22:28 steffen Note Added: 0005529 2021-11-22 09:47 geoffclare Note Added: 0005530 2021-11-22 10:12 geoffclare Note Added: 0005531 ======================================================================
