tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: strftime(3) oddities with %s, %z
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")
>
> roundtrip regardless of how struct tm was obtained.
Xref: https://www.openwall.com/lists/musl/2018/01/18/4
-uwe
Home |
Main Index |
Thread Index |
Old Index