[Linuxptp-devel] Leap seconds in Linux

2018-01-15 Thread Petr Kulhavy
Hi, my question is not directly related to linuxptp, but the expertise here might be the right one to answer it. Is there a way to retrieve a UT1 timestamp on Linux? It seems all the library functions like gettimeofday(), clock_gettime() etc. return the Unix time without leap seconds. And th

Re: [Linuxptp-devel] Leap seconds in Linux

2018-01-15 Thread Frantisek Rysanek
Hello Petr, AFAICT, the UNIX "epoch time" is per definition oblivious of leap seconds = in UNIX time, leap seconds "do not exist, and after a leap second actually happens, to a UNIX machine it never has happend" :-) This approach is probably standardized in POSIX. http://www.madore.org/~david/co

[Linuxptp-devel] Stepping the time backwards with phc2sys

2018-01-15 Thread Loy, Matthias
Hello, we are syncronizing devices using ptp. The absolute time is not relevant but all devices should be close to each other. Furthermore devices are connected and disconnected at any time and most of the time there is no real grandmaster clock with higher priority. As a result, a new connected