JCL Help:SystemTimeToFileTime@TSystemTime

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a TSystemTime to a TFileTime.


Pascal

 function SystemTimeToFileTime(const SystemTime: TSystemTime): TFileTime; overload;
procedure SystemTimeToFileTime(const SystemTime: TSystemTime; FTime: TFileTime); overload;


Parameters

Parameters Description
const SystemTime: TSystemTime The TSystemTime to convert.


Return Value

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


Description

SystemTimeToFileTime converts the supplied TSystemTime to a TFileTime.


See Also

FileTimeToDateTime DosDateTimeToSystemTime DosDateTimeToDateTime DateTimeToDosDateTime


About

Unit

JclDateTime


Donator

Michael Schnell


Notes

This function performs the same operation as the procedure SystemTimeToFileTime from Windows.pas. The overloaded procedure is identical to the procedure in 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.SystemTimeToFileTime). 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