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



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

Parameters

period
A TdPeriodDate.
interval
The number of years and months from the TdIntervalYearToMonth that will be added to the TdPeriodDate.

Return Value

A TdPeriodDate is returned that is the result of adding a TdIntervalYearToMonth to a TdPeriodDate.
Exceptions
ExceptionDescription
Unable to add the specified TdIntervalYearToMonth 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.

The number of years and months 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 years and months are 1 year, 2 months the add operation will result in a period of ('2008-12-04', '2009-01-01').

The number of years and months 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 years and months are 1 year, 2 months the add operation will result in a period of ('2008-12-04', '2009-01-01').

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