| [Overview][Constants][Procedures and functions][Index] | 
Increase a DateTime value with a number of hours.
Source position: dateutil.inc line 291
| function IncHour( | 
| const AValue: TDateTime; | 
| const ANumberOfHours: Int64 | 
| ):TDateTime; | 
| const AValue: TDateTime | 
| ):TDateTime; | 
| AValue | 
 | DateTime to which hours should be added. | 
| ANumberOfHours | 
 | Number of hours to add | 
DateTime representing AValue plus ANumberOfHours hours.
| AValue | 
 | DateTime 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 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 minutes. | |
| 
 | Increase a DateTime value with a number of seconds. | |
| 
 | Increase a DateTime 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.