JNA API 3.2.7
com.sun.jna.platform.win32

Class WinBase.FILETIME

  • Enclosing class:
    WinBase


    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)
    • Field Detail

      • dwLowDateTime

        public int dwLowDateTime
      • dwHighDateTime

        public int dwHighDateTime
    • Constructor Detail

      • WinBase.FILETIME

        public WinBase.FILETIME()
    • Method Detail

      • filetimeToDate

        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.

        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.
      • dateToFileTime

        public static long dateToFileTime(java.util.Date date)

        Converts a Date into a filetime.

        Parameters:
        date - The date to be converted
        Returns:
        The filetime
        See Also:
        filetimeToDate(int, int)
      • toDate

        public java.util.Date toDate()
      • toLong

        public long toLong()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Structure
JNA API 3.2.7

Copyright © 2007-2010 Timothy Wall. All Rights Reserved.