DB2TimeStamp Members

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
public field Null Null value for DB2TimeStamp.
public field MaxValue Maximum value for DB2TimeStamp: 24:00:00.00000000000, December 31, 9999.
public field MinValue Minimum value for DB2TimeStamp: 00:00:00.000000000000, January 1, 0001.

Public Constructors

Constructor Description
public method DB2TimeStamp() Initializes a new set to null.
public method 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.
public method 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.
public method 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.
public method DB2TimeStamp(DateTime value) Initializes a new DB2TimeStamp structure with the specified DateTime value.
public method DB2TimeStamp(DateTime value, int precision) Initializes a new DB2TimeStamp structure with the specified DateTime and integer precision values.

Public Properties

Property Description
public property IsNull Gets a value that indicates if the value stored in the DB2TimeStamp object is null.
public property Precision Gets the value describing the precision of the DB2TimeStamp object.
public property Value Gets the value stored in the DB2TimeStamp object in the form of a System.DateTime object.

Public Methods

Method Description
public method Parse Converts the supplied String to DB2TimeStamp.
public method ToString Returns a string that represents the DB2TimeStamp object.
public method op_explicit Converts the supplied DB2TimeStamp structure to a DateTime.
public method op_implicit Converts the supplied DateTime to DB2TimeStamp.