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