| Package | Description |
|---|---|
| org.apache.commons.net.ntp |
NTP - network time protocol
|
| Modifier and Type | Method and Description |
|---|---|
static TimeStamp |
TimeStamp.getCurrentTime()
Gets an 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)
Gets an NTP timestamp object from a Java time.
|
TimeStamp |
NtpV3Packet.getOriginateTimeStamp()
Gets the
originate time as defined in RFC-1305. |
TimeStamp |
NtpV3Impl.getOriginateTimeStamp()
Gets the
originate time as defined in RFC-1305. |
TimeStamp |
NtpV3Packet.getReceiveTimeStamp()
Gets the
receive time as defined in RFC-1305. |
TimeStamp |
NtpV3Impl.getReceiveTimeStamp()
Gets the
receive timestamp as defined in RFC-1305. |
TimeStamp |
NtpV3Packet.getReferenceTimeStamp()
Gets the reference time as defined in RFC-1305.
|
TimeStamp |
NtpV3Impl.getReferenceTimeStamp()
Gets the reference time as defined in RFC-1305.
|
TimeStamp |
NtpV3Packet.getTransmitTimeStamp()
Gets the
transmit timestamp as defined in RFC-1305. |
TimeStamp |
NtpV3Impl.getTransmitTimeStamp()
Gets the
transmit timestamp as defined in RFC-1305. |
static TimeStamp |
TimeStamp.parseNtpString(String s)
Parses the string argument as a NTP hexidecimal timestamp representation string (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
int |
TimeStamp.compareTo(TimeStamp anotherTimeStamp)
Compares two Timestamps numerically.
|
void |
NtpV3Packet.setOriginateTimeStamp(TimeStamp ts)
Sets originate timestamp given NTP TimeStamp object.
|
void |
NtpV3Impl.setOriginateTimeStamp(TimeStamp ts)
Sets originate timestamp given NTP TimeStamp object.
|
void |
NtpV3Packet.setReceiveTimeStamp(TimeStamp ts)
Sets receive timestamp given NTP TimeStamp object.
|
void |
NtpV3Impl.setReceiveTimeStamp(TimeStamp ts)
Sets receive timestamp given NTP TimeStamp object.
|
void |
NtpV3Packet.setReferenceTime(TimeStamp ts)
Sets the reference timestamp given NTP TimeStamp object.
|
void |
NtpV3Impl.setReferenceTime(TimeStamp ts)
Sets Reference time with NTP timestamp.
|
void |
NtpV3Packet.setTransmitTime(TimeStamp ts)
Sets the
transmit timestamp given NTP TimeStamp object. |
void |
NtpV3Impl.setTransmitTime(TimeStamp ts)
Sets transmit time with NTP timestamp.
|