System.IOUtils.TFile.GetCreationTimeUtc
Delphi
class function GetCreationTimeUtc(const Path: string): TDateTime; inline; static;
C++
static System::TDateTime __fastcall GetCreationTimeUtc(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TFile |
Description
Returns the creation time of a file in UTC (Coordinated Universal Time) time zone.
Use GetCreationTimeUtc to obtain the creation time of a file in UTC time zone.
On POSIX and Mac, a file system entry does not have a Creation Time defined. The only information that is available is the last modified and last accessed time.
Note: GetCreationTimeUtc raises an exception if the given path is invalid or the file does not exist.