DB2DateTime(Int32 numUnits, DB2TimeUnit unit) Constructor
Initializes a new DB2DateTime structure with a single time unit.
The DB2DateTime constructor 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 Sub New(numUnits as Integer, unit as DB2TimeUnit)
[C#]
public DB2DateTime(Int32 numUnits, DB2TimeUnit unit);
[C++]
public: DB2DateTime(Int32 numUnits, DB2TimeUnit unit);
[JScript]
public function DB2DateTime(numUnits : Int32, unit : DB2TimeUnit);
Parameters
- numUnits
- An integer value to populate a specific time unit that is specified by the unit parameter for the DB2DateTime instance.
- unit
- A DB2TimeUnit value to specify for the DB2DateTime instance.
Remarks
The DB2TimeUnit enumeration
consists of following time units that make up the DB2DateTime structure:
public enum DB2TimeUnit
{
Year = 0,
Month = 2,
Day = 4,
Hour = 6,
Minute = 8,
Second = 10,
Fraction1 = 11,
Fraction2 = 12,
Fraction3 = 13,
Fraction4 = 14,
Fraction5 = 15,
Fraction = 16
}