DateUtils.RecodeTime

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DateUtils.pas

	function RecodeTime(const AValue: TDateTime;
		const AHour: Word;
		const AMinute: Word;
		const ASecond: Word;
		const AMilliSecond: Word): TDateTime;


Unit: DateUtils

Type: function

Visibility: public

C++ Information

From DateUtils.hpp

	System::TDateTime __fastcall RecodeTime(System::TDateTime AValue,
		unsigned short AHour,
		unsigned short AMinute,
		unsigned short ASecond,
		unsigned short AMilliSecond);


Unit: DateUtils

Type: function

Description

Replaces the time portion of a specified TDateTime value.


Call RecodeTime to convert the date/time value specified by AValue with the value obtained by changing the hour to AHour, the minute to AMinute, the second to ASecond, and the milliseconds to AMilliSecond.

AHour can range from 0 through 24. If AHour is 24, AMinute, ASecond, and AMilliSecond must all be 0.

AMinute can range from 0 through 59.

ASecond can range from 0 through 59.

AMilliSecond can range from 0 through 999.

If the values provided for AHour, AMinute, ASecond, and AMilliSecond do not fall in the valid range, RecodeTime raises an EConvertError exception.

See Also

Code Samples


Personal tools
Translations
Newest Version