System.DateUtils.RecodeSecond

From RAD Studio API Documentation
Revision as of 19:48, 11 November 2011 by L10nBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

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

Contents

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

Personal tools
Translations