System.IOUtils.TDirectory.SetCreationTimeUtc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetCreationTimeUtc(const Path: string;  const CreationTime: TDateTime); static;

C++

static void __fastcall SetCreationTimeUtc(const System::UnicodeString Path, const System::TDateTime CreationTime);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory

Description

Changes the creation time of a directory.

Use SetCreationTime to change the creation time of a directory. 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 directory for which the creation time is changed.

CreationTime

The new creation time that will be applied to the directory.



Note: SetCreationTimeUtc raises an exception if the given path is invalid or the directory does not exist.

See Also