poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / localtime_r.texi
blob420bc2ee1ab56dc499fc268c451e70881ebcd9ef
1 @node localtime_r
2 @section @code{localtime_r}
3 @findex localtime_r
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime_r.html}
7 Gnulib module: time_r
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 mingw, MSVC 14.
14 @item
15 This function is not declared unless @code{_REENTRANT} is defined,
16 on some platforms:
17 HP-UX 11.
18 @end itemize
20 Portability problems not fixed by Gnulib:
21 @itemize
22 @item
23 On some platforms, this function loops forever for values
24 near extrema (such as the year @math{-2**31}):
25 Mac OS X 10.6.
26 You can use the @code{time_rz} module to work around the problem.
27 @item
28 On some platforms, this function returns nonsense values for
29 unsupported arguments (like @math{2^56}), rather than failing:
30 FreeBSD 10.
31 @end itemize