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



Teradata.Client.Provider Namespace > TdIntervalDayToMinute Structure > TdIntervalDayToMinute Constructor : TdIntervalDayToMinute Constructor(TimeSpan,Byte)
A TimeSpan to initialize TdIntervalDayToMinute.
Number of significant digits of the day.
An instance of TdIntervalDayToMinute is created using a TimeSpan specifying the day precision as a byte.
Syntax
'Declaration
 
Public Function New( _
   ByVal timeSpan As TimeSpan, _
   ByVal precision As Byte _
)
'Usage
 
Dim timeSpan As TimeSpan
Dim precision As Byte
 
Dim instance As New TdIntervalDayToMinute(timeSpan, precision)
public TdIntervalDayToMinute( 
   TimeSpan timeSpan,
   byte precision
)
public:
TdIntervalDayToMinute( 
   TimeSpan timeSpan,
   byte precision
)

Parameters

timeSpan
A TimeSpan to initialize TdIntervalDayToMinute.
precision
Number of significant digits of the day.
Exceptions
ExceptionDescription
The timespan parameter specifies a TdIntervalDayToMinute value less than TdIntervalDayToMinute.MinValue or greater than TdIntervalDayToMinute.MaxValue.
The precision parameter is outside the TdIntervalDayToMinute.MinPrecision or TdIntervalDayToMinute.MaxPrecision range of values.
The precision parameter is not large enough to represent the number of days.
Remarks

The TimeSpan value is converted into a TdIntervalDayToMinute"/> and evaluated against TdIntervalDayToMinute.MinValue and TdIntervalDayToMinute.MaxValue. If the values are not exceeded but the resulting days component exceeds the supplied parameter precision value, an exception is generated.

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.

Requirements

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

See Also

Reference

TdIntervalDayToMinute Structure
TdIntervalDayToMinute Members
Overload List