JCL Help:DosDateTimeToFileTime@TDosDateTime
JCL Help: DosDateTimeToFileTime Function
Search in JCL Help
Search in all projects
Summary
Converts a TDosDateTime to a TFileTime.
Pascal
function DosDateTimeToFileTime(DosTime: TDosDateTime): TFileTime; overload;
procedure DosDateTimeToFileTime(DTH: Word; DTL: Word; FT: TFileTime); overload;
Parameters
Parameters | Description |
DosTime: TDosDateTime | The TDosDateTime to convert. |
Return Value
The TDosDateTime converted to TFileTime. On failure the function raises an exception.
Description
DosDateTimeToFileTime converts the supplied TDosDateTime to a TFileTime, ignoring whether the supplied DateTime is UNC based or local.
See Also
FileTimeToDateTime DosDateTimeToSystemTime SystemTimeToDosDateTime DateTimeToDosDateTime
About
Unit
Donator
Michael Schnell
Notes
The JCL DateTime conversion functions supplement routines found in the Delphi RTL and the Win32 API. If a conversion function is not included here it most likely can be found in either of those libraries. The overloaded procedure is identical to the procedure from Windows and provided for compatibility. Please keep in mind that this routine is also defined in Windows.pas and to succesfully use it you must ensure that either JclDateTime is listed after Windows in the uses clause or you prefix the call with the unit name (JclDateTime.DosDateTimeToFileTime). Failure to do so may lead to a compiler error.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page