[libc-commits] [libc] [libc] Add timezone extensions to struct tm and time.h (PR #203381)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Mon Jun 15 22:14:07 PDT 2026
================
@@ -19,7 +25,10 @@ struct tm {
int tm_wday; // days since Sunday
int tm_yday; // days since January
int tm_isdst; // Daylight Saving Time flag
- // TODO: add tm_gmtoff and tm_zone? (posix extensions)
+#if defined(__linux__)
----------------
vonosmas wrote:
Would adding those fields hurt too much on baremetal (in terms of data structure size etc.)? We can always just make the logic of populating them conditional.
https://github.com/llvm/llvm-project/pull/203381
More information about the libc-commits
mailing list