DB2DateTime members
List of the DB2DateTime structure members.
The DB2DateTime members are available for use only with the Informix® database server.
Public fields
Public constructors
Constructor | Description |
---|---|
![]() |
Initializes a new DB2DateTime that is set
to null . |
![]() |
Initializes a new DB2DateTime structure with the specified integer values. |
![]() |
Initializes a new DB2DateTime structure with the specified integer values. |
![]() |
Initializes a new DB2DateTime structure with the specified integer values. |
![]() |
Initializes a new DB2DateTime structure with the specified DateTime value. |
![]() |
Initializes a new DB2DateTime structure with the specified DateTime object and integer precision values. |
![]() |
Initializes a new DB2DateTime structure with the specified ticks since midnight on 1 Jan 0001. |
![]() |
Initializes a new DB2DateTime structure with a single time unit. |
![]() |
Initializes a new DB2DateTime structure with a series of two time units and a defined end time unit. |
![]() |
Initializes a new DB2DateTime structure with a series of three time units and a defined end time unit. |
![]() |
Initializes a new DB2DateTime structure with a series of four time units and a defined end time unit. |
![]() |
Initializes a new DB2DateTime structure with a series of five time units and a defined end time unit. |
![]() |
Initializes a new DB2DateTime structure with a series of six time units and a defined end time unit. |
![]() |
Initializes a new DB2DateTime structure with a series of seven time units and a defined end time unit. |
Cast operators
Cast operator | Description |
---|---|
![]() public static explicit operator DateTime
(DB2DateTime source) |
Casts a DB2DateTime structure
to a DateTime data type. |
![]() public static explicit operator DB2DateTime
(DateTime source) |
Casts aDateTime data type
to a DB2DateTime structure. |
![]() public static explicit operator DB2TimeStamp
(DB2DateTime source) |
Casts aDB2DateTime structure to a DB2TimeStamp structure. |
![]() public static explicit operator DB2DateTime
(DB2TimeStamp source) |
Casts a DB2TimeStamp structure to a DB2DateTime structure. |
Public methods
Method | Description |
---|---|
![]() |
Adds specified days to the DB2DateTime instance. |
![]() |
Adds specified hours to the DB2DateTime instance. |
![]() |
Adds specified milliseconds to the DB2DateTime instance. |
![]() |
Adds specified minutes to the DB2DateTime instance. |
![]() |
Adds specified months to the DB2DateTime instance. |
![]() |
Adds specified seconds to the DB2DateTime instance. |
![]() |
Adds specified ticks to the DB2DateTime instance. |
![]() |
Adds specified years to the DB2DateTime instance. |
![]() |
Determines whether one DB2DateTime instance value is earlier, later, or the same as another DB2DateTime instance value. |
![]() |
Determines whether the specified object value is earlier, later, or the same as the DB2DateTime instance value. |
![]() |
Returns the number of days that are in the specified month of the year. |
![]() |
Determines whether one DB2DateTime instance value is equal to another DB2DateTime instance value. |
![]() |
Determines whether one DB2DateTime instance value is later than another DB2DateTime instance value. |
![]() |
Determines whether one DB2DateTime instance value is the same or later than another DB2DateTime instance value. |
![]() |
Determines whether one DB2DateTime instance value is earlier than another DB2DateTime instance value. |
![]() |
Determines whether one DB2DateTime instance value is the same or earlier than another DB2DateTime instance value. |
![]() |
Determines whether one DB2DateTime instance value is earlier or later than another DB2DateTime instance value. |
![]() |
Returns a new DB2DateTime structure value that is based on the szDateTime string. |
![]() |
Returns a new DB2DateTime structure value that is based on the szDateTime string and specified precision value. |
![]() |
Returns the value of the DB2DateTime instance as a string. |
Public properties
Property | Description |
---|---|
![]() |
Gets the date value that is stored in the DB2DateTime structure. |
![]() |
Gets the day value that is stored in the DB2DateTime structure. |
![]() |
Gets the end time unit that is stored in the DB2DateTime instance. |
![]() |
Gets the hour value that is stored in the DB2DateTime structure. |
![]() |
Gets a value that indicates whether the value that is stored in the DB2DateTime structure is null. |
![]() |
Gets the millisecond value that is stored in the DB2DateTime structure. |
![]() |
Gets the minute value that is stored in the DB2DateTime instance. |
![]() |
Gets the month value that is stored in the DB2DateTime instance. |
![]() |
Gets current date and time value. |
![]() |
Gets a precision value of the DB2DateTime structure value. |
![]() |
Gets the second value that is stored in the DB2DateTime instance. |
![]() |
Gets the first time unit that is stored in the DB2DateTime instance. |
![]() |
Returns the number of ticks since midnight on 1 January 0001 to the time that is specified in the DB2DateTime instance. |
![]() |
Gets the current date value. |
![]() |
Gets the value that is stored in the DB2DateTime structure. |
![]() |
Gets the year value that is stored in the DB2DateTime instance. |