Send feedback on this topic.
Teradata.Client.Provider
Addition(TdIntervalYearToMonth,TdPeriodTimestamp) Operator



Teradata.Client.Provider Namespace > TdPeriodTimestamp Structure > Addition Operator : Addition(TdIntervalYearToMonth,TdPeriodTimestamp) Operator
A TdIntervalYearToMonth that will be added to a TdPeriodTimestamp.
The TdPeriodTimestamp for addition.
Adds the specified TdIntervalYearToMonth to a TdPeriodTimestamp.
Syntax
'Declaration
 
Overloads Public Operator +( _
   ByVal interval As TdIntervalYearToMonth, _
   ByVal period As TdPeriodTimestamp _
) As TdPeriodTimestamp
'Usage
 

Parameters

interval
A TdIntervalYearToMonth that will be added to a TdPeriodTimestamp.
period
The TdPeriodTimestamp for addition.

Return Value

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

If the interval or period is Null a TdPeriodTimestamp.Null will be returned.

The interval interval will be added to a TdPeriodTimestamp. For example, if the TdPeriodTimestamp is ("2007-10-04 12:50:56", "2007-11-01 13:23:54") and the interval is "5-10" (5 years, 10 months) the operation will result in "2013-08-04 12:50:56", "2013-09-01 13:23:54").

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

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List