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