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



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure > Add Method : Add(TdIntervalYearToMonth) Method
A TdIntervalYearToMonth that will be added to this instance of TdPeriodTimestampWithTimeZone.
Adds the specified TdIntervalYearToMonth to this instance of TdPeriodTimestampWithTimeZone.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal interval As TdIntervalYearToMonth _
) As TdPeriodTimestampWithTimeZone
'Usage
 
Dim instance As TdPeriodTimestampWithTimeZone
Dim interval As TdIntervalYearToMonth
Dim value As TdPeriodTimestampWithTimeZone
 
value = instance.Add(interval)

Parameters

interval
A TdIntervalYearToMonth that will be added to this instance of TdPeriodTimestampWithTimeZone.

Return Value

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

If the interval or this instance is Null a TdPeriodTimestampWithTimeZone.Null will be returned.

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

Requirements

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

See Also

Reference

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List