Skip to main content

UNIX_TO_PTP_TIME_OFFSET_SECONDS

Static UNIX_TO_PTP_TIME_OFFSET_SECONDS 

Source
pub static UNIX_TO_PTP_TIME_OFFSET_SECONDS: LazyLock<u64>
Expand description

Number of seconds to add to UNIX time to convert to PTP time.

  • UNIX time and PTP time use the same epoch: 01/01/1970 00:00:00.00
  • UNIX time follows UTC in the sense that neither add leap seconds.
  • PTP time follows TAI with regard to leap seconds.