Uses of Class
org.apache.commons.net.ntp.TimeStamp
-
Uses of TimeStamp in org.apache.commons.net.ntp
Modifier and TypeMethodDescriptionstatic TimeStamp
TimeStamp.getCurrentTime()
Constructs a NTP timestamp object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.static TimeStamp
TimeStamp.getNtpTime
(long dateMillis) Helper method to convert Java time to NTP timestamp object.NtpV3Impl.getOriginateTimeStamp()
Returns theoriginate
time as defined in RFC-1305.NtpV3Packet.getOriginateTimeStamp()
NtpV3Impl.getReceiveTimeStamp()
Returnsreceive
timestamp as defined in RFC-1305.NtpV3Packet.getReceiveTimeStamp()
NtpV3Impl.getReferenceTimeStamp()
Returns the reference time as defined in RFC-1305.NtpV3Packet.getReferenceTimeStamp()
NtpV3Impl.getTransmitTimeStamp()
Returns thetransmit
timestamp as defined in RFC-1305.NtpV3Packet.getTransmitTimeStamp()
static TimeStamp
TimeStamp.parseNtpString
(String s) Parses the string argument as a NTP hexidecimal timestamp representation string (e.g.Modifier and TypeMethodDescriptionint
Compares two Timestamps numerically.void
NtpV3Impl.setOriginateTimeStamp
(TimeStamp ts) Set originate timestamp given NTP TimeStamp object.void
NtpV3Packet.setOriginateTimeStamp
(TimeStamp ts) Set originate timestamp given NTP TimeStamp object.void
NtpV3Impl.setReceiveTimeStamp
(TimeStamp ts) Set receive timestamp given NTP TimeStamp object.void
NtpV3Packet.setReceiveTimeStamp
(TimeStamp ts) Set receive timestamp given NTP TimeStamp object.void
NtpV3Impl.setReferenceTime
(TimeStamp ts) Set Reference time with NTP timestamp.void
NtpV3Packet.setReferenceTime
(TimeStamp ts) Set the reference timestamp given NTP TimeStamp object.void
NtpV3Impl.setTransmitTime
(TimeStamp ts) Set transmit time with NTP timestamp.void
NtpV3Packet.setTransmitTime
(TimeStamp ts) Set thetransmit
timestamp given NTP TimeStamp object.