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



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

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdIntervalHour Structure
TdIntervalHour Members
Overload List