System.IOUtils.TFile.GetCreationTime
Delphi
class function GetCreationTime(const Path: string): TDateTime; inline; static;
C++
static System::TDateTime __fastcall GetCreationTime(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.
Use GetCreationTime to obtain the creation time of a file.
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: GetCreationTime raises an exception if the given path is invalid or the file does not exist.