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



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

Parameters

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

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.

Requirements

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

See Also

Reference

TdIntervalMinute Structure
TdIntervalMinute Members
Overload List