SysUtils.ReplaceTime
From RAD Studio VCL Reference
Contents |
Delphi Information
From SysUtils.pas
procedure ReplaceTime(var DateTime: TDateTime; const NewTime: TDateTime);
Unit: SysUtils
Type: procedure
Visibility: public
C++ Information
From SysUtils.hpp
void __fastcall ReplaceTime(System::TDateTime & DateTime, System::TDateTime NewTime);
Unit: SysUtils
Type: function
Description
Replaces the time portion of a TDateTime value with a specified time.
ReplaceTime changes the value of the DateTime parameter so that it has the same time as the NewTime parameter. The date portion of DateTime remains the same. ReplaceTime makes any necessary adjustments for negative dates (before 1900).