[Overview][Constants][Procedures and functions] | Reference for unit 'dateutils' (#rtl) |
Increase a DateTime value with a number of seconds.
Source position: line 0
function IncSecond( |
const AValue: TDateTime; |
const ANumberOfSeconds: Int64 |
):TDateTime; |
const AValue: TDateTime |
):TDateTime; |
AValue |
|
DateTime to which seconds should be added. |
ANumberOfSeconds |
|
Number of seconds to add |
DateTime representing AValue plus ANumberOfSeconds seconds.
AValue |
|
DateTime to which seconds should be added. |
DateTime representing AValue plus ANumberOfSeconds seconds.
IncSecond adds ANumberOfSeconds seconds to AValue and returns the resulting date/time.ANumberOfSeconds 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 Example77; { This program demonstrates the IncSecond function } Uses SysUtils,DateUtils; Begin Writeln('One Second from now is ',TimeToStr(IncSecond(Time,1))); Writeln('One Second ago from now is ',TimeToStr(IncSecond(Time,-1))); End.
No notes exist for this page yet.