Send feedback on this topic.
Teradata.Client.Provider
Add(TdIntervalDayToSecond) Method



Teradata.Client.Provider Namespace > TdTimestamp Structure > Add Method : Add(TdIntervalDayToSecond) Method
A TdIntervalDayToSecond that will be added to this instance of TdTimestamp.
Adds the specified TdIntervalDayToSecond to this instance of TdTimestamp.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal interval As TdIntervalDayToSecond _
) As TdTimestamp
'Usage
 
Dim instance As TdTimestamp
Dim interval As TdIntervalDayToSecond
Dim value As TdTimestamp
 
value = instance.Add(interval)

Parameters

interval
A TdIntervalDayToSecond that will be added to this instance of TdTimestamp.

Return Value

A TdTimestamp is returned that is the result of adding the TdIntervalDayToSecond to this instance of TdTimestamp.
Exceptions
ExceptionDescription
Unable to add the specified TdIntervalDayToSecond to this instance of TdTimestamp.
Remarks

If interval or this instance of TdTimestamp is Null a TdTimestamp.Null will be returned.

The TdIntervalDayToSecond interval will be added to this instance of TdTimestamp.

If the scale between this instance of TdTimestamp and the interval parameter are different, the arithmetic operation will be performed using the different scales. The result will then be truncated to match the scale of the TdTimestamp. For example, if the TdIntervalDayToSecond value of "222 10:25:40.61234" (222 days, 10 hours, 25 minutes and 40.61234 seconds) is added to the TdTimestamp value of "2008-10-10 12:50:56.2123" the operation will result in a TdTimestamp value of "2009-05-20 23:16:36" with 824600 microseconds.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List