System.DateUtils.RecodeSecond

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function RecodeSecond(const AValue: TDateTime; const ASecond: Word): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall RecodeSecond(const System::TDateTime AValue, const System::Word ASecond);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

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

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 through 59.

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

See Also


Code Examples