[Overview][Constants][Procedures and functions] | Reference for unit 'dateutils' (#rtl) |
Increase a DateTime value with a number of milliseconds.
Source position: line 0
function IncMilliSecond( |
const AValue: TDateTime; |
const ANumberOfMilliSeconds: Int64 |
):TDateTime; |
const AValue: TDateTime |
):TDateTime; |
AValue |
|
DateTime to which milliseconds should be added. |
ANumberOfMilliSeconds |
|
Number of milliseconds to add |
DateTime representing AValue plus ANumberOfMilliSeconds milliseconds.
AValue |
|
DateTime to which milliseconds should be added. |
DateTime representing AValue plus ANumberOfMilliSeconds milliseconds.
IncMilliSecond adds ANumberOfMilliSeconds milliseconds to AValue and returns the resulting date/time.ANumberOfMilliSeconds can be positive or negative.
|
Increase a DateTime value with a number of years. |
|
|
Increases the month in a TDateTime value with a given amount. |
|
|
Increase a DateTime value with a number of weeks. |
|
|
Increase a DateTime value with a number of days. |
|
|
Increase a DateTime value with a number of hours. |
|
|
Increase a DateTime value with a number of seconds. |
|
|
Increase a DateTime 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.
No notes exist for this page yet.