Send feedback on this topic.
Teradata.Client.Provider
TdIntervalHour Constructor(Int32)



Teradata.Client.Provider Namespace > TdIntervalHour Structure > TdIntervalHour Constructor : TdIntervalHour Constructor(Int32)
Number of hours.
An instance of TdIntervalHour is created from a time component specified as an integer.
Syntax
'Declaration
 
Public Function New( _
   ByVal hours As Integer _
)
'Usage
 
Dim hours As Integer
 
Dim instance As New TdIntervalHour(hours)
public TdIntervalHour( 
   int hours
)
public:
TdIntervalHour( 
   int hours
)

Parameters

hours
Number of hours.
Exceptions
ExceptionDescription
The hours parameter specifies a TdIntervalHour value less than TdIntervalHour.MinValue or greater than TdIntervalHour.MaxValue.
Remarks

The number of hours are converted into a TdIntervalHour and evaluated against TdIntervalHour.MinValue and TdIntervalHour.MaxValue. The TdIntervalHour.Precision is then calculated from the number of digits contained within the interval hour component.

For example, 99 hours is first constructed into TdIntervalHour. Precision is calculated to be a value of 2 representing two significant digits in the hour.

Negative constructor parameters may be supplied to represent negative durations of time.

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