On Fri, Nov 02, 2018 at 10:26:44AM -0700, Cliff Spradlin via Linuxptp-users 
wrote:
> On Fri, Nov 2, 2018 at 9:19 AM Chris Caudle <ch...@chriscaudle.org> wrote:
> > Is leap seconds not something which is handled gracefully by PTP?
> 
> PTP defines mechanisms for announcing UTC offsets and upcoming leap
> seconds. It's not particularly elegant and has some ambiguities, but
> it's sufficient. ptp4l and phc2sys work together to handle UTC offsets
> and leap seconds reported by a master.
> 
> I was just pointing out that linuxptp, if running as a grandmaster,
> has no mechanism for detecting and communicating upcoming leap seconds
> to slaves. You can issue some GRANDMASTER_SETTINGS_NP pmc commands to
> make it work but it could be a pretty complex orchestration.

Complex?

At the beginning of the day of the event:

  currentUtcOffset        35
  leap59                  1

At midnight:

  currentUtcOffset        36
  leap59                  0

Thanks,
Richard


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to