System.DateUtils.RecodeMilliSecond
Delphi
function RecodeMilliSecond(const AValue: TDateTime; const AMilliSecond: Word): TDateTime;
C++
extern DELPHI_PACKAGE System::TDateTime __fastcall RecodeMilliSecond(const System::TDateTime AValue, const System::Word AMilliSecond);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
Description
Replaces the millisecond of the second for a specified TDateTime value.
Call RecodeMilliSecond 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 through 999.
If the value provided for AMilliSecond is not in the legal range, RecodeMilliSecond raises an EConvertError exception.
See Also