DB2DateTime(int year, int month, int day, int hour, int minute, int second, int microsecond) Constructor

Initializes a new DB2DateTime structure with the specified integer values.

The DB2DateTime constructor is available for use only with Informix® database server.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Sub New (year as Integer, month as Integer, _
    day as Integer, hour as Integer, _
    minute as Integer, second as Integer, _
    microsecond as Integer _
)
[C#]
public DB2DateTime(int year, int month, 
    int day, int hour, 
    int minute, int second,
    int microsecond
);
[C++]
public: DB2DateTime(int year,int month, 
    int day, int hour, 
    int minute, int second,
    int microsecond
);
[JScript]
public function DB2DateTime(year : int, month : int,
    year : int, month : int,
    day : int, hour : int,
    minute : int, second : int,
    microsecond : int
 );

Parameters

year
An integer value to provide the year for the DB2DateTime instance.
month
An integer value to provide the month for the DB2DateTime instance.
day
An integer value to provide the day for the DB2DateTime instance.
hour
An integer value to provide the hour for the DB2DateTime instance.
minute
An integer value to provide the minute for the DB2DateTime instance.
second
An integer value to provide the second for the DB2DateTime instance.
microsecond
An integer value to provide the microsecond for the DB2DateTime instance.