JCL Help:SetFileLastAccess

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Sets the file's last-access time stamp.


Pascal

 function SetFileLastAccess(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 access.
const DateTime: TDateTime The date and time to set the file's last access 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

SetFileLastAccess sets the specified file's last-access timestamp to the supplied datetime. This routine cannot be used to set the last-access timestamp of a directory. Use SetDirLastAccess for that.


See Also

SetFileLastWrite SetFileCreation GetFileLastAccess GetFileLastWrite GetFileCreation


About

Unit

JclFileUtils


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