org.apache.directory.server.ntp.messages
Class NtpTimeStamp
java.lang.Object
org.apache.directory.server.ntp.messages.NtpTimeStamp
public class NtpTimeStamp
- extends java.lang.Object
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.
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
toString()
|
void |
writeTo(java.nio.ByteBuffer buffer)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NtpTimeStamp
public NtpTimeStamp()
NtpTimeStamp
public NtpTimeStamp(java.util.Date date)
NtpTimeStamp
public NtpTimeStamp(java.nio.ByteBuffer data)
writeTo
public void writeTo(java.nio.ByteBuffer buffer)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.