'Usage Dim seconds As Integer Dim instance As New TdIntervalSecond(seconds)
Parameters
- seconds
- Number of seconds.
'Usage Dim seconds As Integer Dim instance As New TdIntervalSecond(seconds)
Exception | Description |
---|---|
OverflowException | The parameters specify a TdIntervalSecond value less than TdIntervalSecond.MinValue or greater than TdIntervalSecond.MaxValue. |
The number of seconds is constructed into a TdIntervalSecond and evaluated against TdIntervalSecond.MinValue and TdIntervalSecond.MaxValue. The TdIntervalSecond.Scale is set to zero for this constructor. The TdIntervalSecond.Precision is calculated from the number of digits contained within the interval second component.
For example 300 seconds is first converted into a TdIntervalSecond and evaluated against MinValue and MaxValue. Precision is calculated to be a value of 3 representing three significant digits in 300 seconds. The scale is set to zero.
Negative constructor parameters may be supplied to represent negative durations of time.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019