System.IOUtils.TFile.SetLastAccessTimeUtc
Delphi
class procedure SetLastAccessTimeUtc(const Path: string;
const LastAccessTime: TDateTime); inline; static;
C++
static void __fastcall SetLastAccessTimeUtc(const System::UnicodeString Path, const System::TDateTime LastAccessTime);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| procedure function | public | System.IOUtils.pas System.IOUtils.hpp | System.IOUtils | TFile | 
Description
Changes the last access time of a file.
Use SetLastAccessTimeUtc to change the last access time of a file. The new date-time value is considered to be in the UTC (Coordinated Universal Time) time zone. The following table lists the parameters expected by this method.
| Name | Meaning | 
|---|---|
| Path | Path of the file for which the last access time is changed. | 
| LastAccessTime | The new last access time that will be applied to the file. | 
Note: SetLastAccessTimeUtc raises an exception if the given path is invalid or the file does not exist.