DB2DateTime.AddHours(Double hours) method
Adds specified hours to the DB2DateTime instance.
The DB2DateTime.AddHours(Double hours) method is available for use only with the Informix® database server.
- Namespace:
IBM.Data.DB2Types
- Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)
Syntax
[Visual Basic]
Public Shared Function AddHours (hours As Double) As DB2DateTime
[C#]
public DB2DateTime AddHours (Double hours)
[C++]
public:
DB2DateTime AddHours (Double hours)
[JScript]
public function AddHours (hours Double ) : DB2DateTime
Parameters
- hours
- The number of hours that you want to add to the existing DB2DateTime instance.
Return value
A new DB2DateTime structure that consists of the original DB2DateTime instance value plus the number of hours that is specified in the hours parameter. The hour time unit must be specified in the existing DB2DateTime instance.