What's the story on day/year from refclocks?

Eric S. Raymond esr at thyrsus.com
Sun Oct 1 17:01:18 UTC 2017


Hal Murray via devel <devel at ntpsec.org>:
> I have 2 devices with GPS wrap around glitches.
> 
> One is a HP/Lucent box.  It gets the date from the text string.  Fudging 
> works.
> 
> The other is NMEA.  It gets the right time and the current date, ignoring the 
> date in the text.

There's magic code in the NMEA driver that computes the year from
other dare components based on some calendrical trick I don't
understand. A comment notes that it will fail in 2399.

Under consideration for 1.0, once I *do* undertstand it: making all
refclock drivers use this.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.




More information about the devel mailing list