|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jna.Structure
com.sun.jna.platform.win32.WinBase.FILETIME
public static class WinBase.FILETIME
The FILETIME structure is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). Conversion code in this class Copyright 2002-2004 Apache Software Foundation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.jna.Structure |
|---|
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue |
| Field Summary | |
|---|---|
int |
dwHighDateTime
|
int |
dwLowDateTime
|
| Fields inherited from class com.sun.jna.Structure |
|---|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE |
| Constructor Summary | |
|---|---|
WinBase.FILETIME()
|
|
| Method Summary | |
|---|---|
static long |
dateToFileTime(java.util.Date date)
Converts a Date into a filetime. |
static java.util.Date |
filetimeToDate(int high,
int low)
Converts a Windows FILETIME into a Date. |
java.util.Date |
toDate()
|
long |
toLong()
|
java.lang.String |
toString()
|
| Methods inherited from class com.sun.jna.Structure |
|---|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getFields, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, useMemory, useMemory, write, writeField, writeField |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int dwLowDateTime
public int dwHighDateTime
| Constructor Detail |
|---|
public WinBase.FILETIME()
| Method Detail |
|---|
public static java.util.Date filetimeToDate(int high,
int low)
Converts a Windows FILETIME into a Date. The Windows
FILETIME structure holds a date and time associated with a
file. The structure identifies a 64-bit integer specifying the
number of 100-nanosecond intervals which have passed since
January 1, 1601. This 64-bit value is split into the two double
words stored in the structure.
high - The higher double word of the FILETIME structure.low - The lower double word of the FILETIME structure.
Date.public static long dateToFileTime(java.util.Date date)
Converts a Date into a filetime.
date - The date to be converted
filetimeToDate(int, int)public java.util.Date toDate()
public long toLong()
public java.lang.String toString()
toString in class com.sun.jna.Structure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||