JCL Help:SetFileLastWrite
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: SetFileLastWrite Function
Search in JCL Help
Search in all projects
Summary
Sets the file's last-write time stamp.
Pascal
function SetFileLastWrite(const FileName: string; const DateTime: TDateTime): Boolean;
Parameters
Parameters | Description |
const FileName: string | The name of the file for which to set the time of last write. |
const DateTime: TDateTime | The date and time to set the file's last write stamp to. You must supply the UTC based date and time. To convert from a local date and time use the LocalDateTimeToDateTime function from JclDateTime. |
Return Value
If the function succeeds the result is True, otherwise it's False.
Description
SetFileLastWrite sets the specified file's last-write timestamp to the supplied datetime. This routine cannot be used to set the last-write timestamp of a directory. Use SetDirLastWrite for that.
See Also
SetFileLastAccess SetFileCreation GetFileLastAccess GetFileLastWrite GetFileCreation
About
Unit
Donator
Marcel van Brakel
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