Package org.apache.poi.hpsf
Class Filetime
java.lang.Object
org.apache.poi.hpsf.Filetime
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, Coordinated Universal Time (UTC).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longdateToFileTime(Date date) Converts aDateinto a filetime.static DatefiletimeToDate(long filetime) Converts a Windows FILETIME (in UTC) into aDate(in UTC).static booleanisUndefined(Date date) Returntrueif the date is undefinedvoidbyte[]intwrite(OutputStream out)
-
Constructor Details
-
Filetime
public Filetime() -
Filetime
-
-
Method Details
-
read
-
toByteArray
public byte[] toByteArray() -
write
- Throws:
IOException
-
getJavaValue
-
filetimeToDate
Converts a Windows FILETIME (in UTC) into aDate(in UTC).- Parameters:
filetime- The filetime to convert.- Returns:
- The Windows FILETIME as a
Date.
-
dateToFileTime
Converts aDateinto a filetime.- Parameters:
date- The date to be converted- Returns:
- The filetime
- See Also:
-
isUndefined
Returntrueif the date is undefined- Parameters:
date- the date- Returns:
trueif the date is undefined
-