News for hackers. Stuff that matters.
Re:It’s time to leave the leap second in the past by joerichey on Monday July 25, 2022 @04:26PM (#32230446)
This is actually what the Precision Time Protocol (PTP) does. It's the successor to NTP, so it improves on some of NTP's mistakes. The protocol uses TAI, but also sends the TAI-UTC offset so the computer can display times in UTC.

https://en.wikipedia.org/wiki/Precision_Time_Protocol

Re:It’s time to leave the leap second in the past by fanf2 on Monday July 25, 2022 @06:40PM (#32231904)
PTP and NTP have completely different scopes: PTP requires end-to-end layer 2 support and hateful choice of hardware, so it can only work within a single network; NTP on the other hand was always designed to work across the internet between different organizations, where the network doesn’t help with timekeeping and the organizations don’t work closely with each other.
Re:It’s time to leave the leap second in the past by joerichey on Monday July 25, 2022 @07:14PM (#32232188)
Whoops! You're right, instead of "successor" I should have just said "newer".
Re:It’s time to leave the leap second in the past by fanf2 on Tuesday July 26, 2022 @11:13AM (#32239474)
“hateful”? oops! i meant “careful”
Re:It’s time to leave the leap second in the past by luhn on Monday July 25, 2022 @04:51PM (#32230742)
Why does the time protocol need to send the UTC offset, rather than have the offset be part of system data files, like with timezones? Wouldn't you need the data anyways to translate historical timestamps to UTC?
Re:It’s time to leave the leap second in the past by kosherhurricane on Monday July 25, 2022 @05:52PM (#32231415)
I think this is the argument NTP makes for not including the offset. TAI can be just another "timezone", so that TZDATA should be to used it to derive it.

But that's backwards. A Stratum 1 NTP usually gets its data from GPS, which HAS the offset (GPS runs TAI). But it only outputs UTC, but not the offset, making other programs compute it from TZDATA. Why is NTP making user programs harder to get the data that IT ALREADY HAS? Because philosophically, NTP is married to UTC (even though NTP is mostly for computers!)

And providing this offset would basically get rid of a large body of people (like the TFA) who wants to CHANGE the definition of UTC, which is a more drastic proposal.

Re:It’s time to leave the leap second in the past by Unklejoe on Tuesday July 26, 2022 @09:59AM (#32238364)
> GPS runs TAI

GPS time is actually 19 seconds behind TAI at all times.

Re:It’s time to leave the leap second in the past by SkeuomorphicBee on Monday July 25, 2022 @06:04PM (#32231539)
Those are two different problems that require two different solutions:

1. Displaying current time: for that ideally you need the offset directly from the time server because the system timezone data can be out of date in regards to current time.

2. Displaying historical timestamps: for that you use the system timezone file.

Re:It’s time to leave the leap second in the past by mongol on Monday July 25, 2022 @05:13PM (#32231015)
Seems like a simple and accurate way to handle it.