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

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. 

 

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