System.SysUtils.DateTimeToFileDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DateTimeToFileDate(DateTime: TDateTime): LongInt;

C++

extern DELPHI_PACKAGE System::LongInt __fastcall DateTimeToFileDate(System::TDateTime DateTime);

Properties

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

Description

Converts a TDateTime value into an OS timestamp value.

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

DateTimeToFileDate is particularly useful for converting the Time field of the TSearchRec type used by the FindFirst and FindNext functions.

See Also