System.IOUtils.TFile.SetCreationTimeUtc

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TFile

説明

ファイルの作成時刻を変更します。

ファイルの作成時刻を変更するには、SetCreationTime を使用します。 新しい日時 はUTC(Coordinated Universal Time:協定世界時)であると見なされます。

このメソッドに必要なパラメータの一覧を以下の表に示します。



名前 意味

Path

作成時刻を変更しようとするファイルのパス。

CreationTime

ファイルに適用しようとする新しい作成時刻。



メモ:  指定したパスが無効であったりファイルが存在しない場合には、SetCreationTimeUtc は例外を発生させます。

関連項目