public static class WinBase.FILETIME extends Structure
Modifier and Type | Class and Description |
---|---|
static class |
WinBase.FILETIME.ByReference |
Structure.ByValue
Modifier and Type | Field and Description |
---|---|
int |
dwHighDateTime |
int |
dwLowDateTime |
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
WinBase.FILETIME() |
WinBase.FILETIME(java.util.Date date) |
WinBase.FILETIME(Pointer memory) |
Modifier and Type | Method and 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() |
long |
toLong() |
java.lang.String |
toString() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldOrder, getFields, getFieldTypeInfo, getNativeAlignment, getNativeSize, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
public WinBase.FILETIME(java.util.Date date)
public WinBase.FILETIME()
public WinBase.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()
public long toLong()