WinBase.FILETIME.ByReference@FieldOrder({"dwLowDateTime","dwHighDateTime"}) public static class WinBase.FILETIME extends Structure
| Modifier and Type | Class | Description |
|---|---|---|
static class |
WinBase.FILETIME.ByReference |
Structure.ByValue, Structure.FieldOrder, Structure.StructField| Modifier and Type | Field | Description |
|---|---|---|
int |
dwHighDateTime |
|
int |
dwLowDateTime |
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE| Constructor | Description |
|---|---|
FILETIME() |
|
FILETIME(WinNT.LARGE_INTEGER ft) |
Construct FILETIME from LARGE_INTEGER
|
FILETIME(Pointer memory) |
|
FILETIME(java.util.Date date) |
| Modifier and Type | Method | Description |
|---|---|---|
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() |
Converts this filetime into a
Date |
WinDef.DWORDLONG |
toDWordLong() |
Converts the two 32-bit unsigned integer parts of this filetime
into a 64-bit unsigned integer representing the number of
100-nanosecond intervals since January 1, 1601 (UTC).
|
java.lang.String |
toString() |
If
jna.dump_memory is true, will include a native memory dump
of the Structure's backing memory. |
long |
toTime() |
Converts this filetime into a number of milliseconds which have
passed since January 1, 1970 (UTC).
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField, writeFieldpublic FILETIME(java.util.Date date)
public FILETIME(WinNT.LARGE_INTEGER ft)
ft - public FILETIME()
public FILETIME(Pointer memory)
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 convertedfiletimeToDate(int, int)public java.util.Date toDate()
Converts this filetime into a Date
Date represented by this filetime.public long toTime()
Converts this filetime into a number of milliseconds which have passed since January 1, 1970 (UTC).
public WinDef.DWORDLONG toDWordLong()
Converts the two 32-bit unsigned integer parts of this filetime into a 64-bit unsigned integer representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).