Package com.sun.jna.platform.win32
Class WinBase.FILETIME
- java.lang.Object
- 
- com.sun.jna.Structure
- 
- com.sun.jna.platform.win32.WinBase.FILETIME
 
 
- 
- Direct Known Subclasses:
- WinBase.FILETIME.ByReference
 - Enclosing interface:
- WinBase
 
 @FieldOrder({"dwLowDateTime","dwHighDateTime"}) public static class WinBase.FILETIME extends Structure 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.- Author:
- Rainer Klute (klute@rainer-klute.de) for the Apache Software Foundation (org.apache.poi.hpsf)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classWinBase.FILETIME.ByReference- 
Nested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByValue, Structure.FieldOrder, Structure.StructField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description intdwHighDateTimeintdwLowDateTime- 
Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longdateToFileTime(Date date)Converts aDateinto a filetime.static DatefiletimeToDate(int high, int low)Converts a Windows FILETIME into aDate.DatetoDate()Converts this filetime into aDateWinDef.DWORDLONGtoDWordLong()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).StringtoString()Ifjna.dump_memoryis true, will include a native memory dump of the Structure's backing memory.longtoTime()Converts this filetime into a number of milliseconds which have passed since January 1, 1970 (UTC).- 
Methods inherited from class com.sun.jna.StructureallocateMemory, 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, writeField
 
- 
 
- 
- 
- 
Constructor Detail- 
FILETIMEpublic FILETIME(Date date) 
 - 
FILETIMEpublic FILETIME(WinNT.LARGE_INTEGER ft) Construct FILETIME from LARGE_INTEGER- Parameters:
- ft-
 
 - 
FILETIMEpublic FILETIME() 
 - 
FILETIMEpublic FILETIME(Pointer memory) 
 
- 
 - 
Method Detail- 
filetimeToDatepublic static 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.- Parameters:
- high- The higher double word of the FILETIME structure.
- low- The lower double word of the FILETIME structure.
- Returns:
- The Windows FILETIME as a Date.
 
 - 
dateToFileTimepublic static long dateToFileTime(Date date) Converts a Dateinto a filetime.- Parameters:
- date- The date to be converted
- Returns:
- The filetime
- See Also:
- filetimeToDate(int, int)
 
 - 
toDatepublic Date toDate() Converts this filetime into a Date- Returns:
- The Daterepresented by this filetime.
 
 - 
toTimepublic long toTime() Converts this filetime into a number of milliseconds which have passed since January 1, 1970 (UTC). - Returns:
- This filetime as a number of milliseconds which have passed since January 1, 1970 (UTC)
 
 - 
toDWordLongpublic 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). - Returns:
- This filetime as a 64-bit unsigned integer number of 100-nanosecond intervals since January 1, 1601 (UTC).
 
 
- 
 
-