System.IOUtils.TDirectory.SetLastWriteTimeUtc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetLastWriteTimeUtc(const Path: string;
const LastWriteTime: TDateTime); 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 TDirectory

Description

Changes the last write time of a directory.

Use SetLastWriteTimeUtc to change the last write 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 last write time is changed.

LastWriteTime

The new last write time that will be applied to the directory.



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

See Also