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



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

Parameters

interval
A TdIntervalDay.
days
Number of days to subtract.

Return Value

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

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

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

Requirements

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

See Also

Reference

TdIntervalDay Structure
TdIntervalDay Members
Overload List