'Usage Dim hours As Integer Dim instance As New TdIntervalHour(hours)
Parameters
- hours
- Number of hours.
'Usage Dim hours As Integer Dim instance As New TdIntervalHour(hours)
Exception | Description |
---|---|
OverflowException | The hours parameter specifies a TdIntervalHour value less than TdIntervalHour.MinValue or greater than TdIntervalHour.MaxValue. |
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.
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |