'Usage Dim timeSpan As TimeSpan Dim instance As New TdIntervalMinute(timeSpan)
Parameters
- timeSpan
- A TimeSpan to initialize TdIntervalMinute.
'Usage Dim timeSpan As TimeSpan Dim instance As New TdIntervalMinute(timeSpan)
Exception | Description |
---|---|
OverflowException | The timespan parameter specifies a TdIntervalMinute value less than TdIntervalMinute.MinValue or greater than TdIntervalMinute.MaxValue. |
The TimeSpan value is converted into a TdIntervalMinute and evaluated against TdIntervalMinute.MinValue and TdIntervalMinute.MaxValue. The TdIntervalMinute.Precision is then calculated from the number of digits contained within the interval minute component.
After conversion of the TimeSpan value into a TdIntervalMinute, any seconds or microseconds will be truncated. For example, a TimeSpan value created with a TimeSpan.Ticks value of 2400401234567 results in a value of 40 hours, 0 minutes and 40.1234567 seconds. The TdIntervalMinute literal representation results in a TdIntervalMinute value of '4000'. The 40.1234567 seconds value is truncated. Precision is calculated to be a value of 4 representing four significant digits in the minute.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019