'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.
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 |