Package io.zenoh.time

Object Timestamp.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Timestamp ofNtp64(Long ntp64, ZenohId id) Build a timestamp from the raw 64 NTP bits — the constructor Java callers want, since the primary one takes an unsigned type Java cannot express.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • ofNtp64

         final Timestamp ofNtp64(Long ntp64, ZenohId id)

        Build a timestamp from the raw 64 NTP bits — the constructor Java callers want, since the primary one takes an unsigned type Java cannot express. These are the same bits org.apache.commons.net.ntp.TimeStamp(long) takes, so TimeStamp.getCurrentTime().ntpValue() feeds straight in.