Send feedback on this topic.
Teradata.Client.Provider
Addition(TdPeriodDate,TdIntervalDayToSecond) Operator



Teradata.Client.Provider Namespace > TdPeriodDate Structure > Addition Operator : Addition(TdPeriodDate,TdIntervalDayToSecond) Operator
A TdPeriodDate.
The number of days from this TdIntervalDayToSecond to be added to a TdPeriodDate.
Adds the specified TdIntervalDayToSecond to a TdPeriodDate.
Syntax
'Declaration
 
Overloads Public Operator +( _
   ByVal period As TdPeriodDate, _
   ByVal interval As TdIntervalDayToSecond _
) As TdPeriodDate
'Usage
 
public TdPeriodDate operator +( 
   TdPeriodDate period,
   TdIntervalDayToSecond interval
)
public:
TdPeriodDate operator +( 
   TdPeriodDate period,
   TdIntervalDayToSecond interval
)

Parameters

period
A TdPeriodDate.
interval
The number of days from this TdIntervalDayToSecond to be added to a TdPeriodDate.

Return Value

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

If interval or period 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
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

TdPeriodDate Structure
TdPeriodDate Members
Overload List