Send feedback on this topic.
Teradata.Client.Provider
Subtract(TdIntervalYear,Int32) Method



Teradata.Client.Provider Namespace > TdIntervalYear Structure > Subtract Method : Subtract(TdIntervalYear,Int32) Method
A TdIntervalYear.
Number of years to subtract.
The specified number of years is subtracted from the TdIntervalYear.
Syntax
'Declaration
 
Public Overloads Shared Function Subtract( _
   ByVal interval As TdIntervalYear, _
   ByVal years As Integer _
) As TdIntervalYear
'Usage
 
Dim interval As TdIntervalYear
Dim years As Integer
Dim value As TdIntervalYear
 
value = TdIntervalYear.Subtract(interval, years)
public static TdIntervalYear Subtract( 
   TdIntervalYear interval,
   int years
)
public:
static TdIntervalYear Subtract( 
   TdIntervalYear interval,
   int years
) 

Parameters

interval
A TdIntervalYear.
years
Number of years to subtract.

Return Value

A new TdIntervalYear as the result of substracting an Int32 from TdIntervalYear.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalYear.MaxValue or less than the TdIntervalYear.MinValue.
Remarks

If interval is TdIntervalYear.Null a Null will be returned.

The returned TdIntervalYear will contain a precision set to the TdIntervalYear.MaxPrecision.

Requirements

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

See Also

Reference

TdIntervalYear Structure
TdIntervalYear Members
Overload List