System.SysUtils.TDateTimeInfoRec

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

  TDateTimeInfoRec = record
  private
{$IFDEF MSWINDOWS}
    Data: TWin32FindData platform;
{$ENDIF MSWINDOWS}
{$IFDEF POSIX}
    st: _stat platform;
{$ENDIF POSIX}
    function GetCreationTime: TDateTime;
    function GetLastAccessTime: TDateTime;
    function GetTimeStamp: TDateTime;
  public
    property CreationTime: TDateTime read GetCreationTime;
    property LastAccessTime: TDateTime read GetLastAccessTime;
    property TimeStamp: TDateTime read GetTimeStamp;
  end;

C++

struct DECLSPEC_DRECORD TDateTimeInfoRec
{
private:
    _WIN32_FIND_DATAW Data;
    System::TDateTime __fastcall GetCreationTime(void);
    System::TDateTime __fastcall GetLastAccessTime(void);
    System::TDateTime __fastcall GetTimeStamp(void);
public:
    __property System::TDateTime CreationTime = {read=GetCreationTime};
    __property System::TDateTime LastAccessTime = {read=GetLastAccessTime};
    __property System::TDateTime TimeStamp = {read=GetTimeStamp};
};

Propriétés

Type Visibilité  Source Unité  Parent
record
struct
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Boîte d'outils de l'utilitaire TDateTime.

L'enregistrement TDateTimeInfoRec est utilisé par la routine FileGetDateTimeInfo pour renvoyer les diverses heures et dates à la demande.

Voir aussi