|
From: | Roger Oberholtzer |
Subject: | Re: Leap seconds |
Date: | Wed, 22 May 2024 06:22:48 +0000 |
Let me ask this a different way.
If I am reading NMEA data from a receiver, and I want to set my clock to UTC time, should I:
Is this what gpsd/chrony do? So the clock will be UTC time and not the time as reported in, say, ZDA/GGA records?
Or do they just set the time as obtained in step 1? If they are doing that, is the time then really UTC time?
Roger Oberholtzer
RST Digital Solutions
Tel: +46 (0)70-815 1696
roger.oberholtzer@ramboll.se
________________________________________
Ramböll Sverige AB
Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se
Classification: Confidential From: Greg Troxel <gdt@lexort.com>
Sent: Tuesday, May 21, 2024 14:24 To: Roger Oberholtzer <Roger.Oberholtzer@ramboll.se> Cc: gpsd-users@nongnu.org <gpsd-users@nongnu.org> Subject: Re: Leap seconds Roger Oberholtzer <Roger.Oberholtzer@ramboll.se> writes:
[formatting repaired] > When using gpsd/chrony to maintain the local clock, would that time be > with or without the current 18 leap seconds? In a system where > everything is pretty much set to defaults. > > Our GPS supplier made a comment that surprised me: the NMEA times > contain the 18 leap seconds. Presumably these times would be used > unchanged by gpsd/chrony? Your question uses language that is a bit off, but TAI does not have leap seconds. Only time labs use TAI. GPS time does not have leap seconds, but is not the same as TAI. As I understand it, GPS time was coincident with UTC at the start of the GPS era, 1980-01-01. I don't understand why, given that GPS time has no leap seconds, it was not set to TAI, which would have saved us from one more timescale. GPS time is used internally within the GPS system and is rarely used otherwise. It can be displayed on some timing receivers, but AIUI, only GPS system maintenance people and cantankerous nerds would do so. We live in a GNSS world, not a GPS world, and each constellation has its own timescale. This means that GPS time is even less likely to be used in the future. GNSS receivers outut NMEA which is in UTC. UTC has leap seconds relative to TAI. Hence it also has them relative to GPS time. GPS signals transmit a # of leap seconds from GPS to UTC which is how the receiver knows how to compute UTC. Unix systems keep time in UTC. Everything can be messy around a leap second. So "NMEA times contain the 18 leap seconds" presumably means that the time reported by NMEA is UTC which is 18s less than GPS time, and thus "contains leap seconds". But I would not use the phrase "contains leap seconds", as it is unclear and unconventional, and I don't think it leads anybody to understand the situation. If you are doing normal things, you probably want UTC. The normal path of pretty much everything is to use UTC. > Classification: Confidential It is nonsensical to publish confidential content to a public list. In this case, the only thing disclosed is your lack of clarity about leap seconds, which puts you in the company of 99.999% of the planet, so little information has been leaked. But seriously, please fix your mail system. It is not reasonable to send mail with such labels to public lists. |
[Prev in Thread] | Current Thread | [Next in Thread] |