RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.ReplaceTime Function

Replaces the time portion of a TDateTime value with a specified time.

Pascal
procedure ReplaceTime(var DateTime: TDateTime; const NewTime: TDateTime);
C++
ReplaceTime(TDateTime DateTime, const TDateTime NewTime);

SysUtils

ReplaceTime changes the value of the DateTime parameter so that it has the same time as the NewTime parameter. The date portion of DateTime remains the same. ReplaceTime makes any necessary adjustments for negative dates. (before 1900) 

 

DecodeTime 

EncodeTime 

ReplaceDate 

RecodeDateDay 

RecodeDateHour 

RecodeDateMillisecond 

RecodeDateMinute 

RecodeDateMonth 

RecodeDateSecond 

RecodeDateYear 

StartOfADay 

EndOfADay 

RecodeTime

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!