Re: [svlogd] / -ttt / why UTC?

From: <>
Date: Thu, 6 Apr 2023 12:47:14 +0000 (UTC)

Laurent Bercot <> wrote:
>  If your system clock is set to TAI-10, [...]
I don't know exactly what u mean with "TAI-10".
I guess u are refering to those 10seconds
that were the initial difference between UTC and TAI at the start of 1972...
So it should be TAI-00:00:10...

> [...] then *all* the time-handling
> software on your machine must be aware of it,
here i disagree a little bit:
As long as the software uses glibc's time functions to break down
"seconds since the start of 1970* to year, month, mday, hours, minutes, seconds,
the software does not need any patches...
Ur link is a little bit misleading or outdated in that point...

exim, fetchmail, dma and s-nail need(ed) a change, because:
They omitted the non-zero seconds
instead of converting the timestamp to UTC and
printing the timezone as -00:00 (with a minus).

> I don't think you'll be able to keep running Void with a full TAI-10
What would be wrong about the "-tttt" (localtime time stamp) option?
Then I would not have to build/write my own *log daemon...
And svlogd just needs to use localtime_r(3)...
Received on Thu Apr 06 2023 - 14:47:14 CEST

This archive was generated by hypermail 2.4.0 : Thu Apr 06 2023 - 14:47:52 CEST