DB2DateTime methods

Summary of the DB2DateTime methods.

The DB2DateTime methods are available for use only with the Informix® database server.

Public methods

Method Description
public method AddDays(Double days) Adds specified days to the DB2DateTime instance.
public method AddHours(Double hours) Adds specified hours to the DB2DateTime instance.
public method AddMilliseconds(Double milliseconds) Adds specified milliseconds to the DB2DateTime instance.
public method AddMinutes(Double minutes) Adds specified minutes to the DB2DateTime instance.
public method AddMonths(Int32 months) Adds specified months to the DB2DateTime instance.
public method AddSeconds(Double seconds) Adds specified seconds to the DB2DateTime instance.
public method AddTicks(Int64 ticks) Adds specified ticks to the DB2DateTime instance.
public method AddYears(Int32 years) Adds specified years to the DB2DateTime instance.
public method Compare(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is earlier, later, or the same as another DB2DateTime instance value.
public method CompareTo(object obj) Determines whether the specified object value is earlier, later, or the same as the DB2DateTime instance value.
public method DaysInMonth(Int32 year, Int32 month) Returns the number of days that are in the specified month of the year.
public method Equals(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is equal to another DB2DateTime instance value.
public method GreaterThan(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is later than another DB2DateTime instance value.
public method GreaterThanOrEqual(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is the same or later than another DB2DateTime instance value.
public method LessThan(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is earlier than another DB2DateTime instance value.
public method LessThanOrEqual(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is the same or earlier than another DB2DateTime instance value.
public method NotEquals(DB2DateTime db2DT1, DB2DateTime db2DT2) Determines whether one DB2DateTime instance value is earlier or later than another DB2DateTime instance value.
public method Parse(String szDateTime) Returns a new DB2DateTime structure value that is based on the szDateTime string.
public method Parse(String szDateTime, int precision) Returns a new DB2DateTime structure value that is based on the szDateTime string and specified precision value.
public method ToString() Returns the value of the DB2DateTime instance as a string.