UnixTimeToFileTime Method
Converts the date/time in Unix format to Windows FileTime format.
Syntax
QDateTime UnixTimeToFileTime(qint64 lUnixTime, int iNanoseconds);
Remarks
Use this method to convert the date/time in Unix format to Windows FileTime format.
Pass the Unix time value to UnixTime and optionally pass the subsecond part of the time, expressed in nanoseconds, to the Nanoseconds parameter. If the subsecond part of the time is not available, set Nanoseconds to zero (0) value.
Error Handling
This method returns a Long64 value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.