On Tue, Oct 25, 2022 at 04:08:13 +0300, Valery Ushakov wrote:
> musl seems to do the right thing. Its mktime obeys the "expressed as
> local time" requirement and ignores tz-related state in tm, but %s
> gets you the original time_t back from the
>
> time_t -> struct tm -> strftime("%s")
>
strftime(3) %s format is not in ISO C or POSIX, though the rumor is
that it will be in the next POSIX version.
Our man page and Solaris man page both just say it's the number of
seconds since the Epoch.
glibc says (ubuntu 22.04):
The number of seconds since the Epoch, 1970-01-01 00:00:00 +