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
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestamp Structure
TdTimestamp Members