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



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

Parameters

interval
A TdIntervalMonth.
months
Number of months to subtract.

Return Value

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

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

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

Requirements

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

See Also

Reference

TdIntervalMonth Structure
TdIntervalMonth Members
Overload List