Send feedback on this topic.
Teradata.Client.Provider
AddYears Method (TdTimestampWithTimeZone)



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure : AddYears Method
The number of years to add to the TdTimestampWithTimeZone.
Adds the specified number of years to the this instance of TdTimestampWithTimeZone.
Syntax
'Declaration
 
Public Function AddYears( _
   ByVal years As Integer _
) As TdTimestampWithTimeZone
'Usage
 
Dim instance As TdTimestampWithTimeZone
Dim years As Integer
Dim value As TdTimestampWithTimeZone
 
value = instance.AddYears(years)
public TdTimestampWithTimeZone AddYears( 
   int years
)
public:
TdTimestampWithTimeZone AddYears( 
   int years
) 

Parameters

years
The number of years to add to the TdTimestampWithTimeZone.

Return Value

A TdTimestampWithTimeZone structure is returned.
Exceptions
ExceptionDescription
The result of the arithmetic operation resulted in an overflow of the timestamp.
Remarks

If this instance of TdTimestampWithTimeZone is Null a TdTimestampWithTimeZone.Null will be returned.

Requirements

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

See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members