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);

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. 

 

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