Increase a TDateTime value with a number of milliseconds.
Source position: dateutil.inc line 319
function IncMilliSecond( |
const AValue: TDateTime; |
const ANumberOfMilliSeconds: Int64 |
):TDateTime; |
const AValue: TDateTime |
):TDateTime; |
AValue |
|
TDateTime to which milliseconds should be added. |
ANumberOfMilliSeconds |
|
Number of milliseconds to add. |
TDateTime representing AValue plus ANumberOfMilliSeconds milliseconds.
AValue |
|
TDateTime to which milliseconds should be added. |
IncMilliSecond adds ANumberOfMilliSeconds milliseconds to AValue and returns the resulting date/time.ANumberOfMilliSeconds can be positive or negative.
|
Increase a TDateTime value with a number of years. |
|
|
Increases the month in a TDateTime value with a given amount. |
|
|
Increase a TDateTime value with a number of weeks. |
|
|
Increase a TDateTime value with a number of days. |
|
|
Increase a TDateTime value with a number of hours. |
|
|
Increase a TDateTime value with a number of seconds. |
|
|
Increase a TDateTime value with a number of milliseconds. |
Program Example78; { This program demonstrates the IncMilliSecond function } Uses SysUtils,DateUtils; Begin Writeln('One MilliSecond from now is ',TimeToStr(IncMilliSecond(Now,1))); Writeln('One MilliSecond ago from now is ',TimeToStr(IncMilliSecond(Now,-1))); End.