Example usage for Java org.apache.commons.net.ntp TimeStamp fields, constructors, methods, implement or subclass
The text is from its open source code.
TimeStamp(long ntpTime) Constructs a newly allocated NTP timestamp object that represents the native 64-bit long argument. | |
TimeStamp(String s) Constructs a newly allocated NTP timestamp object that represents the value represented by the string in hexdecimal form (e.g. | |
TimeStamp(Date d) Constructs a newly allocated NTP timestamp object that represents the Java Date argument. |
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. |
Date | getDate() Convert NTP timestamp to Java Date object. |
long | getFraction() Returns low-order 32-bits representing the fractional seconds. |
TimeStamp | getNtpTime(long date) Helper method to convert Java time to NTP timestamp object. |
long | getSeconds() Returns high-order 32-bits representing the seconds of this NTP timestamp. |
long | getTime() Convert NTP timestamp to Java standard time. |
String | toDateString() Converts this TimeStamp object to a String of the form: See java.text.SimpleDataFormat for code descriptions.EEE, MMM dd yyyy HH:mm:ss.SSS |