DateUtils.RecodeHour

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DateUtils.pas

	function RecodeHour(const AValue: TDateTime; const AHour: Word): TDateTime;


Unit: DateUtils

Type: function

Visibility: public

C++ Information

From DateUtils.hpp

	System::TDateTime __fastcall RecodeHour(System::TDateTime AValue, unsigned short AHour);


Unit: DateUtils

Type: function

Description

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


Call RecodeHour to convert the date/time value specified by AValue with the value obtained by changing the hour of the day to AHour. Legal values for AHour range from 0 through 24. If AHour is 24, the minutes, seconds, and milliseconds of AValue must all be 0.

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

See Also

Code Samples


Personal tools
Translations
Newest Version