System.IOUtils.TDirectory.SetLastAccessTimeUtc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetLastAccessTimeUtc(const Path: string;
const LastAccessTime: TDateTime); static;

C++

static void __fastcall SetLastAccessTimeUtc(const System::UnicodeString Path, const System::TDateTime LastAccessTime);

Properties

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

Description

Changes the last access time of a directory.

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

LastAccessTime

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



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

See Also