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



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

Parameters

interval
A TdIntervalHour.
hours
Number of hours to subtract.

Return Value

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

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

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

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalHour Structure
TdIntervalHour Members
Overload List