[Overview][Constants][Procedures and functions][Index] |
Increase a TDateTime value with a number of hours.
Source position: dateutil.inc line 304
function IncHour( |
const AValue: TDateTime; |
const ANumberOfHours: Int64 |
):TDateTime; |
const AValue: TDateTime |
):TDateTime; |
AValue |
|
TDateTime to which hours should be added. |
ANumberOfHours |
|
Number of hours to add |
TDateTime representing AValue plus ANumberOfHours hours.
AValue |
|
TDateTime to which hours should be added. |
IncHour adds ANumberOfHours hours to AValue and returns the resulting date/time.ANumberOfHours 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 minutes. |
|
|
Increase a TDateTime value with a number of seconds. |
|
|
Increase a TDateTime value with a number of milliseconds. |
Program Example75 ; { This program demonstrates the IncHour function } Uses SysUtils,DateUtils; Begin Writeln('One Hour from now is ',DateTimeToStr(IncHour(Now,1))); Writeln('One Hour ago from now is ',DateTimeToStr(IncHour(Now,-1))); End.