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



Teradata.Client.Provider Namespace > TdIntervalMinute Structure > TdIntervalMinute Constructor : TdIntervalMinute Constructor(TimeSpan,Byte)
A TimeSpan to initialize TdIntervalMinute.
Number of significant digits of the day.
An instance of TdIntervalMinute is created using a TimeSpan specifying the minute 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 TdIntervalMinute(timeSpan, precision)
public TdIntervalMinute( 
   TimeSpan timeSpan,
   byte precision
)
public:
TdIntervalMinute( 
   TimeSpan timeSpan,
   byte precision
)

Parameters

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

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

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.

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