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



Teradata.Client.Provider Namespace > TdTimestamp Structure > Addition Operator : Addition(TdIntervalYearToMonth,TdTimestamp) Operator
A TdIntervalYearToMonth that will be added to TdTimestamp.
A TdTimestamp.
Adds the specified TdIntervalYearToMonth to a TdTimestamp.
Syntax
'Declaration
 
Overloads Public Operator +( _
   ByVal interval As TdIntervalYearToMonth, _
   ByVal timestamp As TdTimestamp _
) As TdTimestamp
'Usage
 
public TdTimestamp operator +( 
   TdIntervalYearToMonth interval,
   TdTimestamp timestamp
)
public:
TdTimestamp operator +( 
   TdIntervalYearToMonth interval,
   TdTimestamp timestamp
)

Parameters

interval
A TdIntervalYearToMonth that will be added to TdTimestamp.
timestamp
A TdTimestamp.

Return Value

A TdTimestamp is returned that is the result of adding the TdIntervalYearToMonth to a TdTimestamp.
Exceptions
ExceptionDescription
Unable to add the specified TdIntervalYearToMonth to the TdTimestamp.
Remarks

If either parameter is Null a TdTimestamp.Null will be returned.

The interval interval will be added to TdTimestamp. For example, if the TdTimestamp value of "2008-10-10 12:50:56.2123" is added to the TdIntervalYearToMonth value of "10-03" (10 years, 3 months) the operation will result in a TdTimestamp value of "2019-01-10 12:50:56 PM" with 212300 microseconds.

Requirements

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

See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List