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. AMilliSecond
can also be RecodeLeaveFieldAsIs.
If the value provided for AMilliSecond
is not in the legal range, RecodeMilliSecond raises an EConvertError exception.
See Also
- System.SysUtils.ReplaceTime
- System.DateUtils.RecodeHour
- System.DateUtils.RecodeSecond
- System.DateUtils.RecodeMinute
- System.DateUtils.RecodeDay
- System.DateUtils.RecodeMonth
- System.DateUtils.RecodeYear
- System.DateUtils.MilliSecondOf
- System.SysUtils.EConvertError
- Date and Time Support