Send feedback on this topic.
Teradata.Client.Provider
Subtraction(TdIntervalMonth,Int32) Operator



Teradata.Client.Provider Namespace > TdIntervalMonth Structure > Subtraction Operator : Subtraction(TdIntervalMonth,Int32) Operator
A TdIntervalMonth.
Number of months to subtract.
The specified number of months is subtracted from the TdIntervalMonth.
Syntax
'Declaration
 
Overloads Public Operator -( _
   ByVal interval As TdIntervalMonth, _
   ByVal months As Integer _
) As TdIntervalMonth
'Usage
 
public TdIntervalMonth operator -( 
   TdIntervalMonth interval,
   int months
)
public:
TdIntervalMonth operator -( 
   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
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

TdIntervalMonth Structure
TdIntervalMonth Members
Overload List