JCL Help:GetFileLastAccess@string
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: GetFileLastAccess Function
[+] JclFileUtils.pas Functions
Search in JCL Help
Search in all projects
Summary
Returns the date/time that the file was last accessed.
Pascal
function GetFileLastAccess(const FileName: string): TFileTime; overload;
function GetFileLastAccess(const FileName: string; out LocalTime: TDateTime): Boolean; overload;
function GetFileLastAccess(const FileName: string; out TimeStamp: Integer; ResolveSymLinks: Boolean = True): Boolean; overload;
function GetFileLastAccess(const FileName: string; out LocalTime: TDateTime; ResolveSymLinks: Boolean = True): Boolean; overload;
function GetFileLastAccess(const FileName: string; ResolveSymLinks: Boolean = True): Integer; overload;
Parameters
Parameters | Description |
const FileName: string | The name of the file for which to retrieve the time of last access. |
Return Value
The date/time the file was last accessed. On failure the function raises an exception.
Description
GetFileLastAccess returns the date/time that the specified file was last accessed. The return value is a UTC based TFileTime value which can be converted to the familiar TDateTime by using the FileTimeToDateTime function.
See Also
GetFileAgeCoherence GetFileLastWrite GetFileCreation
About
Unit
Donator
Massimo Maria Ghisalberti
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