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



Teradata.Client.Provider Namespace > TdIntervalHour Structure > Addition Operator : Addition(Int32,TdIntervalHour) Operator
Number of hours to add.
A TdIntervalHour.
The specified number of hours is added to the TdIntervalHour.
Syntax
'Declaration
 
Overloads Public Operator +( _
   ByVal hours As Integer, _
   ByVal interval As TdIntervalHour _
) As TdIntervalHour
'Usage
 
public TdIntervalHour operator +( 
   int hours,
   TdIntervalHour interval
)
public:
TdIntervalHour operator +( 
   int hours,
   TdIntervalHour interval
)

Parameters

hours
Number of hours to add.
interval
A TdIntervalHour.

Return Value

A new TdIntervalHour as the result of adding an Int32 to 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