'Usage Dim timeSpan As TimeSpan Dim precision As Byte Dim instance As New TdIntervalMinute(timeSpan, precision)
Parameters
- timeSpan
- A TimeSpan to initialize TdIntervalMinute.
- precision
- Number of significant digits of the day.
'Usage Dim timeSpan As TimeSpan Dim precision As Byte Dim instance As New TdIntervalMinute(timeSpan, precision)
Exception | Description |
---|---|
OverflowException | The timespan parameter specifies a TdIntervalMinute value less than TdIntervalMinute.MinValue or greater than TdIntervalMinute.MaxValue. |
ArgumentOutOfRangeException | The precision parameter is outside the TdIntervalMinute.MinPrecision or TdIntervalMinute.MaxPrecision range of values."/>. |
ArgumentException | The precision parameter is not large enough to represent the number of minutes. |
The TimeSpan value is converted into a TdIntervalMinute"/> and evaluated against TdIntervalMinute.MinValue and TdIntervalMinute.MaxValue. If the values are not exceeded but the resulting minutes component exceeds the supplied parameter precision value, an exception is generated.
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.
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 |