System.DateUtils.RecodeMinute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RecodeMinute(const AValue: TDateTime; const AMinute: Word): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall RecodeMinute(const System::TDateTime AValue, const System::Word AMinute);

Properties

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

Description

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

Call RecodeMinute to convert the date/time value specified by AValue with the value obtained by changing the minute of the hour to AMinute. Legal values for AMinute range from 0 through 59. AMinute can also be RecodeLeaveFieldAsIs.

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

See Also

Code Examples