JCL Help:FileTimeToDosDateTime@TFileTime

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a UTC based TFileTime to a TDateTime.


Pascal

 function FileTimeToDosDateTime(const FileTime: TFileTime): TDosDateTime; overload;
procedure FileTimeToDosDateTime(const FileTime: TFileTime; out Date: Word; out Time: Word); overload;


Parameters

Parameters Description
const FileTime: TFileTime The UTC based TFileTime to convert.


Return Value

The TFileTime converted to TDateTime. On failure the function raises an exception.


Description

FileTimeToDosDateTime converts the supplied, UTC based TFileTime to a TDateTime.


See Also

DosDateTimeToSystemTime SystemTimeToDosDateTime DosDateTimeToDateTime DateTimeToDosDateTime FileTimeToDateTime


About

Unit

JclDateTime


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.FileTimeToDosDateTime). 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