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



Teradata.Client.Provider Namespace > TdIntervalMinute Structure > TdIntervalMinute Constructor : TdIntervalMinute Constructor(Int32,Byte)
Number of minutes.
Number of significant digits of the day.
An instance of TdIntervalMinute is created from a time component specified as an integer while precision is specified as a byte.
Syntax
'Declaration
 
Public Function New( _
   ByVal minutes As Integer, _
   ByVal precision As Byte _
)
'Usage
 
Dim minutes As Integer
Dim precision As Byte
 
Dim instance As New TdIntervalMinute(minutes, precision)
public TdIntervalMinute( 
   int minutes,
   byte precision
)
public:
TdIntervalMinute( 
   int minutes,
   byte precision
)

Parameters

minutes
Number of minutes.
precision
Number of significant digits of the day.
Exceptions
ExceptionDescription
The minutes 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 number of minutes is converted into a TdIntervalMinute and validated to determine if the TdIntervalMinute.MinValue or the TdIntervalMinute.MaxValue values have been exceeded. If the values are not exceeded but the resulting minutes component exceeds the supplied precision value, an exception is generated.

For example a constructor for TdIntervalMinute(444, 2) requests 444 minutes with a precision of 2. The resulting minutes value cannot be represented in 2 digits, therefore an exception is generated, even though the MinValue and the MaxValue values have not been exceeded.

Negative constructor parameters may be supplied to represent negative durations of time.

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