|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.at4j.support.util.WinNtTime
public class WinNtTime
This object represent Windows NT time. The time value is an unsigned 64-bit
value (an UnsignedLong) that counts all 100 nanosecond intervals that
have passed since midnight January 1, 1601 UTC.
Instances of this class are immutable.
| Constructor Summary | |
|---|---|
WinNtTime(Date d)
Create a new WinNtTime from the Date value. |
|
WinNtTime(UnsignedLong t)
Create a new WinNtTime from the numerical value. |
|
| Method Summary | |
|---|---|
int |
compareTo(WinNtTime t2)
|
boolean |
equals(Object o)
|
Date |
getDate()
Get this Windows NT time value as a Date value. |
UnsignedLong |
getTime()
Get the time as an unsigned long. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WinNtTime(UnsignedLong t)
WinNtTime from the numerical value.
t - The time value.public WinNtTime(Date d)
WinNtTime from the Date value.
d - The date.| Method Detail |
|---|
public UnsignedLong getTime()
public Date getDate()
throws UnableToConvertException
Date value.
Date value.
UnableToConvertException - If the Windows NT time value is outside
the range of Java's Date.public int compareTo(WinNtTime t2)
compareTo in interface Comparable<WinNtTime>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||