On Tue, Apr 21, 2020 at 02:01:10PM +0200, Otto Moerbeek wrote: > On Tue, Apr 21, 2020 at 10:51:54AM +0000, Roderick wrote: > > > > > Acording to the man page: "timegm() is a deprecated interface that > > converts [...]" > > > > O.K., deprecated. And what is the alternative? > > > > Thanks for any hint > > Rodrigo > > > > The paragraph above it (discussing timelocal()) suggests it's > mktime().
There is no alternative to timegm that is thread-safe. timegm is widely supported, including BSDs, glibc, musl; it shouldn't be deprecated, IMNSHO. Solaris even recently reintroduced timegm (with 11.4) after having removed it years ago.

