[libc-commits] [libc] [libc] Add timezone extensions to struct tm and time.h (PR #203381)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Thu Jun 11 22:28:58 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__)
----------------
kaladron wrote:

A non-posix bare metal system may not want them, so I made them conditional.

I don't like the ifdef Linux, but that's broadly something we need to fix.

https://github.com/llvm/llvm-project/pull/203381


More information about the libc-commits mailing list