JCL Help:SetFileCreation
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: SetFileCreation Function
Search in JCL Help
Search in all projects
Summary
Sets the file's creation time stamp.
Pascal
function SetFileCreation(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 creation. |
const DateTime: TDateTime | The date and time to set the file's creation 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
SetFileCreation sets the specified file's creation timestamp to the supplied datetime. This routine cannot be used to set the creation timestamp of a directory. See SetDirCreation for that.
See Also
SetFileLastWrite SetFileLastAccess 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