RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.RecodeMilliSecond Function

Replaces the millisecond of the second for a specified TDateTime value.

Pascal
function RecodeMilliSecond(const AValue: TDateTime; const AMilliSecond: Word): TDateTime;
C++
TDateTime RecodeMilliSecond(const TDateTime AValue, const Word AMilliSecond);

DateUtils

Call RecodeDateMilliSecond to convert the date/time value specified by AValue with the value obtained by changing the milliseconds of the second to AMilliSecond. Legal values for AMilliSecond range from 0 to 999. 

If the value provided for AMilliSecond is not in the legal range, RecodeDateMilliSecond raises an EConvertError exception. 

 

ReplaceTime 

RecodeDateHour 

RecodeDateSecond 

RecodeDateMinute 

RecodeDateDay 

RecodeDateMonth 

RecodeDateYear 

MilliSecondOf 

EConvertError

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