System.SysUtils.FileDateToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FileDateToDateTime(FileDate: LongInt): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall FileDateToDateTime(int FileDate);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Converts an OS time stamp value to TDateTime value.

A time stamp is a signed 32-bit integer, used by the OS to record information such as the date and time a file was modified. The precise format of a time stamp depends on the OS. Use FileDateToDateTime to convert a time stamp to a TDateTime value.

You may need to use FileDateToDateTime to convert the Time field of the TSearchRec type used by the FindFirst and FindNext functions.

See Also


Code Examples