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



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

Parameters

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

Return Value

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

If the interval or this instance is Null a TdDate.Null will be returned.

The only component of the TdIntervalDayToSecond that will be considered is the day component. When this operation is performed, the TdIntervalDayToSecond.Days component of the TdIntervalDayToSecond is added to the this instance of TdDate. For example, if the date is "2007-10-04" and the interval is "5 03:20:30" (5 days, 3 hours, 20 minutes and 30 seconds) the operation will result in "2007-10-09".

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDate Structure
TdDate Members
Overload List