summaryrefslogtreecommitdiff
path: root/doc/posix-functions/timezone.texi
blob: 5297c77c2299815ab650b1381ec69868f7fa0a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@node timezone
@section @code{timezone}
@findex timezone

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/timezone.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This variable is missing on some platforms:
IRIX 6.5, mingw.
@item
The address of this variable is not a compile-time constant on some platforms:
mingw.
@item
Native Windows platforms (mingw, MSVC) support only a subset of time
zones supported by GNU or specified by POSIX@.  @xref{tzset}.
@end itemize

A more portable way of getting the UTC offset is to use
@code{strftime} with the @code{%z} format.  @xref{strftime}.