| Modifier and Type | Method and Description |
|---|---|
static long |
dateToFileTime(Date date)
Converts a
Date into a filetime. |
static Date |
filetimeToDate(long filetime)
Converts a Windows FILETIME (in UTC) into a
Date (in UTC). |
Date |
getJavaValue() |
static boolean |
isUndefined(Date date)
Return
true if the date is undefined |
void |
read(LittleEndianByteArrayInputStream lei) |
byte[] |
toByteArray() |
int |
write(OutputStream out) |
public Filetime()
public Filetime(Date date)
public void read(LittleEndianByteArrayInputStream lei)
public byte[] toByteArray()
public int write(OutputStream out) throws IOException
IOExceptionpublic Date getJavaValue()
public static Date filetimeToDate(long filetime)
Date (in UTC).filetime - The filetime to convert.Date.public static long dateToFileTime(Date date)
Date into a filetime.date - The date to be convertedfiletimeToDate(long)public static boolean isUndefined(Date date)
true if the date is undefineddate - the datetrue if the date is undefinedCopyright 2019 The Apache Software Foundation or its licensors, as applicable.