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



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

Parameters

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

The TimeSpan value is converted into a TdIntervalDayToMinute and evaluated against TdIntervalDayToMinute.MinValue and TdIntervalDayToMinute.MaxValue. The TdIntervalDayToMinute.Precision is then calculated from the number of digits contained within the interval day component.

After conversion of the TimeSpan value into a TdIntervalDayToMinute, any seconds or microseconds will be truncated. For example, a TimeSpan value created with a TimeSpan.Ticks value of 9378401234567 results in a value of 10 days, 20 hours, 30 minutes and 40.1234567 seconds. The TdIntervalDayToMinute literal representation results in a TdIntervalDayToMinute value of '10 20:30'. The 40.1234567 seconds value is truncated. Precision is calculated to be a value of 2 representing two significant digits in the day.

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

TdIntervalDayToMinute Structure
TdIntervalDayToMinute Members
Overload List