Stephen Colebourne wrote: > On 19 July 2018 at 09:44, Hal Murray <hmur...@megapathdsl.net> wrote: >>> As a IT professional, and author of date/time libraries, I cannot stress >>> enough how much a standard is needed here. We are going to have both UTC >>> (with leap seconds) and systems that smear ("UT-Smear") and there is >>> currently no agreed way to define the latter or move from one to the other. >>> I >>> strongly suspect that Microsoft is going to have to define a smear in order >>> to meet old APIs, but this really should be something well defined by a >>> standard, not invented by a company. >> >> I think there is a semi-standard emerging for NTP. >> >> There are several big companies running smearing servers. I think they have >> all agreed to use the same parameters. I think that's linear over 24 hours, >> 12 before the leap and 12 after. I'll dig deeper if it matters. > > What I'm hoping will appear is a document that can be treated as a > standard (preferably at a formal standards body of some kind). > > With the changes to Java, I used UTC-SLS (linear over 1000secs). But I > deliberately left open the possibility for Java to adopt any future > standard for smearing that emerged. > https://docs.oracle.com/javase/10/docs/api/java/time/Instant.html
As far as I know, UTC-SLS is done locally on a client, and since it's implemented in a Java runtime it is only "seen" by Java applications. This means if you get timestamps in Java and non-Java applications on the same machine then they may be off by up to 1000 s at the end of the UTC-SLS smear interval, isn't it? If you have a smearing NTP server then all clients of the same server will have the same smeared time, which is of course off UTC during the smear interval, but at least all Java and non-Java applications on a particular machine will see the same system time. I think it depends on the requirements of the applications which way is to be preferred. Martin -- Martin Burnicki Senior Software Engineer MEINBERG Funkuhren GmbH & Co. KG Email: martin.burni...@meinberg.de Phone: +49 5281 9309-414 Linkedin: https://www.linkedin.com/in/martinburnicki/ Lange Wand 9, 31812 Bad Pyrmont, Germany Amtsgericht Hannover 17HRA 100322 Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg, Andre Hartmann, Heiko Gerstung Websites: https://www.meinberg.de https://www.meinbergglobal.com Training: https://www.meinberg.academy _______________________________________________ LEAPSECS mailing list LEAPSECS@leapsecond.com https://pairlist6.pair.net/mailman/listinfo/leapsecs