System.TDateTime.FileDateToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

C++

static TDateTime __fastcall FileDateToDateTime(int fileDate);

Properties

Type Visibility Source Unit Parent
function public systdate.h System TDateTime

Description

Converts an OS timestamp value to TDateTime value.

A timestamp 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 timestamp depends on the OS. Use FileDateToDateTime to convert a timestamp to a TDateTime value.

For example, use FileDateToDateTime to convert the file timestamp returned by FileGetDate or FileAge. You may also need to use FileDateToDateTime to convert the Time field of the TSearchRec struct used by the FindFirst and FindNext functions.

See Also