Represents the DB2® TIMESTAMP data type.
Encapsulates the DateTime .NET data type. The following
tables list the members exposed by the DB2TimeStamp structure.
Public Fields
Field |
Description |
Null |
Null value for DB2TimeStamp. |
MaxValue |
Maximum value for DB2TimeStamp: 24:00:00.00000000000, December
31, 9999. |
MinValue |
Minimum value for DB2TimeStamp: 00:00:00.000000000000, January
1, 0001. |
Public Constructors
Constructor |
Description |
DB2TimeStamp() |
Initializes a new set to null . |
DB2TimeStamp(int year, int month, int day, int
hour, int minute, int second, int microsecond) |
Initializes a new DB2TimeStamp structure with the specified
integer values. |
DB2TimeStamp(int year, int month, int day,
int hour, int minute, int second, int microsecond, int64 picosecond) |
Initializes a new DB2TimeStamp structure with the specified
integer values. |
DB2TimeStamp(int year, int month, int day,
int hour, int minute, int second, int microsecond, int64 picosecond,
int precision) Constructor |
Initializes a new DB2TimeStamp structure with the specified
integer values. |
DB2TimeStamp(DateTime value) |
Initializes a new DB2TimeStamp structure with the specified DateTime value. |
DB2TimeStamp(DateTime value, int precision) |
Initializes a new DB2TimeStamp structure with the specified DateTime and
integer precision values. |
Public Properties
Property |
Description |
IsNull |
Gets a value that indicates if the value
stored in the DB2TimeStamp object is null. |
Precision |
Gets the value describing the precision
of the DB2TimeStamp object. |
Value |
Gets the value stored in the DB2TimeStamp object
in the form of a System.DateTime object. |
Public Methods
Method |
Description |
Parse |
Converts the supplied String to DB2TimeStamp. |
ToString |
Returns a string that represents the DB2TimeStamp object. |
op_explicit |
Converts the supplied DB2TimeStamp structure to a DateTime. |
op_implicit |
Converts the supplied DateTime to DB2TimeStamp. |