|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.ntp.messages.NtpTimeStamp
public class NtpTimeStamp
NTP timestamps are represented as a 64-bit unsigned fixed-point number, in seconds relative to 0h on 1 January 1900. The integer part is in the first 32 bits and the fraction part in the last 32 bits. In the fraction part, the non-significant low order can be set to 0.
Constructor Summary | |
---|---|
NtpTimeStamp()
Creates a new instance of NtpTimeStamp that represents the time "right now." |
|
NtpTimeStamp(java.nio.ByteBuffer data)
Creates a new instance of NtpTimeStamp from encoded data in a ByteBuffer . |
|
NtpTimeStamp(java.util.Date date)
Creates a new instance of NtpTimeStamp that represents the given Date . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
toString()
|
void |
writeTo(java.nio.ByteBuffer buffer)
Writes this NtpTimeStamp to the given ByteBuffer . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NtpTimeStamp()
public NtpTimeStamp(java.util.Date date)
Date
.
date
- public NtpTimeStamp(java.nio.ByteBuffer data)
ByteBuffer
.
data
- Method Detail |
---|
public void writeTo(java.nio.ByteBuffer buffer)
NtpTimeStamp
to the given ByteBuffer
.
buffer
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |