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



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

Parameters

interval
A TdIntervalSecond.
seconds
Number of seconds to subtract.

Return Value

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

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

The returned TdIntervalSecond will contain a precision set to the TdIntervalSecond.MaxPrecision. The scale will always be set to the the scale of the interval.

Requirements

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

See Also

Reference

TdIntervalSecond Structure
TdIntervalSecond Members
Overload List