string-buffer tests: Avoid test failure on native Windows.
[gnulib.git] / doc / posix-functions / tzname.texi
blobff4bce52470c3e069f7a2157386334e34fbf4f13
1 @node tzname
2 @subsection @code{tzname}
3 @findex tzname
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/tzname.html}
7 Gnulib module: tzname
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This variable is called @code{_tzname} on some platforms:
13 mingw with @code{-DNO_OLDNAMES}, MSVC.
14 @end itemize
16 Portability problems not fixed by Gnulib:
17 @itemize
18 @item
19 This variable's contents are unreliable if you use a geographical
20 @env{TZ} setting like @code{TZ="America/Los_Angeles"}.
21 @item
22 The address of this variable is not a compile-time constant on some platforms:
23 Cygwin, mingw, MSVC.
24 @item
25 Native Windows platforms (mingw, MSVC) support only a subset of time
26 zones supported by GNU or specified by POSIX@.  @xref{tzset}.
27 @end itemize
29 This variable is vestigial: it is not needed and does not suffice in general.
30 It is planned to be removed from a future version of POSIX@.
31 A more portable way of getting the time zone abbreviation is to use
32 @code{strftime} with the @code{%Z} format.  @xref{strftime}.