RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.RecodeSecond Function

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

Pascal
function RecodeSecond(const AValue: TDateTime; const ASecond: Word): TDateTime;
C++
TDateTime RecodeSecond(const TDateTime AValue, const Word ASecond);

DateUtils

Call RecodeSecond to convert the date/time value specified by AValue with the value obtained by changing the second of the minute to ASecond. Legal values for ASecond range from 0 to 59. 

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

 

ReplaceTime 

RecodeDateMilliSecond 

RecodeDateMinute 

RecodeDateHour 

RecodeDateDay 

RecodeDateMonth 

RecodeDateYear 

SecondOf 

EConvertError

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