System.IOUtils.TFile.SetLastWriteTimeUtc
Delphi
class procedure SetLastWriteTimeUtc(const Path: string;
const LastWriteTime: TDateTime); inline; static;
C++
static void __fastcall SetLastWriteTimeUtc(const System::UnicodeString Path, const System::TDateTime LastWriteTime);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TFile |
Description
Changes the last write time of a file.
Use SetLastWriteTimeUtc to change the last write 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 write time is changed. |
LastWriteTime |
The new last write time that will be applied to the file. |
Note: SetLastWriteTimeUtc raises an exception if the given path is invalid or the file does not exist.