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



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

Parameters

interval
The number of days from the TdIntervalDayToSecond that will be added to the period.

Return Value

A TdPeriodDate is returned that is the result of adding the TdIntervalDayToSecond to this instance of TdPeriodDate.
Exceptions
ExceptionDescription
Unable to add the specified TdIntervalDayToSecond to this instance of TdPeriodDate.
The TdPeriodDate beginning bound is greater or equal to the ending bound of the period.
Remarks

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

Only the TdIntervalDayToSecond.Days component of the interval will be added to the period.

The number of days will be added to both the beginning and ending bounds of the period. For example, if the period is ("2007-10-04", "2007-11-01") and the number of days is 2 the add operation will result in a period of ("2007-10-06", "2007-11-03").

Requirements

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

See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members
Overload List