tzname
¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/tzname.html
Portability problems fixed by Gnulib:
_tzname
on some platforms:
mingw with -DNO_OLDNAMES
, MSVC.
Portability problems not fixed by Gnulib:
TZ
setting like TZ="America/Los_Angeles"
.
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 time zone abbreviation is to use
strftime
with the %Z
format. See strftime
.