System.SysUtils.TimeStampToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function TimeStampToDateTime(const TimeStamp: TTimeStamp): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall TimeStampToDateTime(const TTimeStamp &TimeStamp);

Properties

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

Description

Converts a TTimeStamp value into the corresponding TDateTime value.

Call TimeStampToDateTime to convert a TTimeStamp value into a TDateTime value. TTimeStamp values represent time as separate date and time values, where the date is the number of calendar days since the start of the current calendar (that is, January 1, 0001 would have a value of 1), and time is the number of milliseconds since midnight. TDateTime values represent time as the number of days (including fractional days) that have elapsed since 12:00 A.M. on December 30, 1899.

See Also