Send feedback on this topic.
Teradata.Client.Provider
TdIntervalMinuteToSecond Constructor(TimeSpan)



Teradata.Client.Provider Namespace > TdIntervalMinuteToSecond Structure > TdIntervalMinuteToSecond Constructor : TdIntervalMinuteToSecond Constructor(TimeSpan)
A TimeSpan to initialize TdIntervalMinuteToSecond.
An instance of TdIntervalMinuteToSecond is created from a TimeSpan.
Syntax
'Declaration
 
Public Function New( _
   ByVal timeSpan As TimeSpan _
)
'Usage
 
Dim timeSpan As TimeSpan
 
Dim instance As New TdIntervalMinuteToSecond(timeSpan)
public TdIntervalMinuteToSecond( 
   TimeSpan timeSpan
)
public:
TdIntervalMinuteToSecond( 
   TimeSpan timeSpan
)

Parameters

timeSpan
A TimeSpan to initialize TdIntervalMinuteToSecond.
Exceptions
ExceptionDescription
The timespan parameter specifies a TdIntervalMinuteToSecond value less than TdIntervalMinuteToSecond.MinValue or greater than TdIntervalMinuteToSecond.MaxValue.
Remarks

The TimeSpan value is converted into a TdIntervalMinuteToSecond and evaluated against TdIntervalMinuteToSecond.MinValue and TdIntervalMinuteToSecond.MaxValue. The TdIntervalMinuteToSecond.Precision is then calculated from the number of digits contained within the interval minute component and the TdIntervalMinuteToSecond.Scale is calculated from the number of decimal places required to represent the fractional seconds.

After conversion of the TimeSpan value into TdIntervalMinuteToSecond, any fractional seconds will be truncated according the the TdIntervalMinuteToSecond.MaxScale value of 6 decimal places. For example, a TimeSpan value created with a TimeSpan.Ticks value of 8601234567 results in a value of 0 days, 0 hours, 14 minutes and 20.1234567 seconds. The TdIntervalMinuteToSecond literal representation results in a TdIntervalMinuteToSecond value of '14:20.123456'. The .1234567 seconds value is truncated by one significant digit. Precision is calculated to be a value of 2 representing two significant digits in the minute.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdIntervalMinuteToSecond Structure
TdIntervalMinuteToSecond Members
Overload List