Next: tmpfile
, Previous: timespec_getres
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
timezone
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/timezone.html
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
TZ
setting like TZ="America/Los_Angeles"
.
timezone
exists)
on some platforms:
FreeBSD 14.0, OpenBSD 5.7.
_timezone
on some platforms:
mingw with -DNO_OLDNAMES
, MSVC.
tzset
.
This variable is vestigial: it is not needed and does not suffice in general.
It is planned to be removed from a future version of POSIX.
A more portable way of getting the UTC offset is to use
strftime
with the %z
format. See strftime
.