System.IOUtils.TFile.GetLastWriteTimeUtc
Delphi
class function GetLastWriteTimeUtc(const Path: string): TDateTime; inline; static;
C++
static System::TDateTime __fastcall GetLastWriteTimeUtc(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TFile |
Description
Returns the last write time of a file in UTC (Coordinated Universal Time) time zone.
Use GetLastWriteTimeUtc to obtain the last write time of a file in 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 obtained. |
Note: GetLastWriteTimeUtc raises an exception if the given path is invalid or the file does not exist.