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
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalMinute Structure
TdIntervalMinute Members
Overload List