Java org.apache.commons.net.ntp TimeStamp fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.ntp TimeStamp fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.ntp TimeStamp.

The text is from its open source code.

Constructor

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.

Method

TimeStampgetCurrentTime()
Constructs a NTP timestamp object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.
DategetDate()
Convert NTP timestamp to Java Date object.
longgetFraction()
Returns low-order 32-bits representing the fractional seconds.
TimeStampgetNtpTime(long date)
Helper method to convert Java time to NTP timestamp object.
longgetSeconds()
Returns high-order 32-bits representing the seconds of this NTP timestamp.
longgetTime()
Convert NTP timestamp to Java standard time.
StringtoDateString()
Converts this TimeStamp object to a String of the form:
 EEE, MMM dd yyyy HH:mm:ss.SSS
See java.text.SimpleDataFormat for code descriptions.