System.SysUtils.ReplaceTime
Delphi
procedure ReplaceTime(var DateTime: TDateTime; const NewTime: TDateTime);
C++
extern DELPHI_PACKAGE void __fastcall ReplaceTime(System::TDateTime &DateTime, const System::TDateTime NewTime);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
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).