RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TimeStampToDateTime Function

Converts a TTimeStamp value into the corresponding TDateTime value.

Pascal
function TimeStampToDateTime(const TimeStamp: TTimeStamp): TDateTime;
C++
TDateTime TimeStampToDateTime(const TTimeStamp TimeStamp);

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 am on December 30, 1899. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!