DB2DateTime.AddSeconds(Double seconds) method

Adds specified seconds to the DB2DateTime instance.

The DB2DateTime.AddSeconds(Double seconds) method is available for use only with the Informix® database server.

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

Syntax


[Visual Basic]
Public Shared Function AddSeconds (seconds As Double) As DB2DateTime
[C#]
public DB2DateTime AddSeconds (Double seconds)
[C++]
public:
DB2DateTime AddSeconds (Double seconds)
[JScript]
public function AddSeconds (seconds Double ) : DB2DateTime

Parameters

seconds
The number of seconds that you want to add to the existing DB2DateTime instance.

Return value

A new DB2DateTime structure that consists of the original DB2DateTime instance value plus the number of seconds that you specified in the seconds parameter. The second time unit must be specified in the existing DB2DateTime instance.