]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
timegm.3: Remove recommendation against their use
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 11 Oct 2021 11:04:02 +0000 (13:04 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Mon, 2 May 2022 21:37:17 +0000 (23:37 +0200)
It was straight after a note that they are nonstandard functions,
which already tells the user that if portability is in mind, they
shouldn't be used, so this recommendation adds nothing in that
sense.

Also, there's a note that timelocal() should _never_ be used, due
to mktime() being identical and in the POSIX standard (it is also
in C99), so this note would also add nothing in that sense.

So the only uses not covered by those other notes are non-portable
uses of timegm(3).  In that scenario, it is an excellent function.

Cc: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/timegm.3

index d1a8fe3151d04ae536f299e94ba5da1c10b8582b..b4a362afe878561f0c00c0abdd84417529711e4a 100644 (file)
@@ -80,7 +80,6 @@ T}    Thread safety   MT-Safe env locale
 .SH CONFORMING TO
 These functions are nonstandard GNU extensions
 that are also present on the BSDs.
-Avoid their use.
 .SH NOTES
 The
 .BR timelocal ()