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



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

Parameters

years
The number of years to add to the TdTimestamp.

Return Value

A TdTimestamp structure is returned.
Exceptions
ExceptionDescription
Unable to add the specified number of year to this instance of TdTimestamp.
Remarks

If this instance of TdTimestamp is Null a TdTimestamp.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

TdTimestamp Structure
TdTimestamp Members