Uses of Class
org.apache.commons.net.ntp.TimeStamp
-
Packages that use TimeStamp Package Description org.apache.commons.net.ntp NTP - network time protocol -
-
Uses of TimeStamp in org.apache.commons.net.ntp
Methods in org.apache.commons.net.ntp that return TimeStamp Modifier and Type Method Description static 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.TimeStamp
NtpV3Impl. getOriginateTimeStamp()
Returns theoriginate
time as defined in RFC-1305.TimeStamp
NtpV3Packet. getOriginateTimeStamp()
TimeStamp
NtpV3Impl. getReceiveTimeStamp()
Returnsreceive
timestamp as defined in RFC-1305.TimeStamp
NtpV3Packet. getReceiveTimeStamp()
TimeStamp
NtpV3Impl. getReferenceTimeStamp()
Returns the reference time as defined in RFC-1305.TimeStamp
NtpV3Packet. getReferenceTimeStamp()
private TimeStamp
NtpV3Impl. getTimestamp(int index)
Gets NTP Timestamp at specified starting index.TimeStamp
NtpV3Impl. getTransmitTimeStamp()
Returns thetransmit
timestamp as defined in RFC-1305.TimeStamp
NtpV3Packet. getTransmitTimeStamp()
static TimeStamp
TimeStamp. parseNtpString(java.lang.String s)
Parses the string argument as a NTP hexidecimal timestamp representation string (e.g.Methods in org.apache.commons.net.ntp with parameters of type TimeStamp Modifier and Type Method Description int
TimeStamp. compareTo(TimeStamp anotherTimeStamp)
Compares two Timestamps numerically.void
NtpV3Impl. setOriginateTimeStamp(TimeStamp ts)
Sets originate timestamp given NTP TimeStamp object.void
NtpV3Packet. setOriginateTimeStamp(TimeStamp ts)
Sets originate timestamp given NTP TimeStamp object.void
NtpV3Impl. setReceiveTimeStamp(TimeStamp ts)
Sets receive timestamp given NTP TimeStamp object.void
NtpV3Packet. setReceiveTimeStamp(TimeStamp ts)
Sets receive timestamp given NTP TimeStamp object.void
NtpV3Impl. setReferenceTime(TimeStamp ts)
Sets Reference time with NTP timestamp.void
NtpV3Packet. setReferenceTime(TimeStamp ts)
Sets the reference timestamp given NTP TimeStamp object.private void
NtpV3Impl. setTimestamp(int index, TimeStamp t)
Sets the NTP timestamp at the given array index.void
NtpV3Impl. setTransmitTime(TimeStamp ts)
Sets transmit time with NTP timestamp.void
NtpV3Packet. setTransmitTime(TimeStamp ts)
Sets thetransmit
timestamp given NTP TimeStamp object.
-