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



Teradata.Client.Provider Namespace > TdIntervalMinuteToSecond Structure > TdIntervalMinuteToSecond Constructor : TdIntervalMinuteToSecond Constructor(Int32,Int32,Int32)
Number of minutes.
Number of seconds.
The number of fractional seconds.
An instance of TdIntervalMinuteToSecond is created from the time components specified as integers.
Syntax
'Declaration
 
Public Function New( _
   ByVal minutes As Integer, _
   ByVal seconds As Integer, _
   ByVal microseconds As Integer _
)
'Usage
 
Dim minutes As Integer
Dim seconds As Integer
Dim microseconds As Integer
 
Dim instance As New TdIntervalMinuteToSecond(minutes, seconds, microseconds)
public TdIntervalMinuteToSecond( 
   int minutes,
   int seconds,
   int microseconds
)
public:
TdIntervalMinuteToSecond( 
   int minutes,
   int seconds,
   int microseconds
)

Parameters

minutes
Number of minutes.
seconds
Number of seconds.
microseconds
The number of fractional seconds.
Exceptions
ExceptionDescription
The parameters specify a TdIntervalMinuteToSecond value less than TdIntervalMinuteToSecond.MinValue or greater than TdIntervalMinuteToSecond.MaxValue.
Remarks

The number of minutes, seconds and microseconds are constructed into a TdIntervalMinuteToSecond and evaluated against TdIntervalMinuteToSecond.MinValue and TdIntervalMinuteToSecond.MaxValue. The microseconds parameter represents 10 ^-6 seconds and the microsecond parameter is divided by 10^-6 (.000001) to create a fractional number of seconds. The TdIntervalMinuteToSecond.Scale is then calculated from the number of fractional seconds required. The TdIntervalMinuteToSecond.Precision is calculated from the number of digits contained within the interval minute component.

For example 75 minutes, 300 seconds and 455666 microseconds is first converted into a TdIntervalMinuteToSecond and evaluated against MinValue and MaxValue. The TdIntervalMinuteToSecond literal representation results in a TdIntervalMinuteToSecond value of '80:00.455666'. Precision is calculated to be a value of 2 representing two significant digits of 80 minutes. The scale is calculated to be 6 from the number of decimal places right of the seconds interval which equals the TdIntervalMinuteToSecond.MaxScale value.

Negative constructor parameters may be supplied to represent negative durations of time. Mixed positive and negative constructor parameters are added together that result in a negative or positive TdIntervalMinuteToSecond. For instance, a minute value of 20, a second value of -4900, and a microsecond value of 30 will result in a TdIntervalMinuteToSecond interval value of -'61:40.000030' with a calculated precision of 2 and a calculated scale of 6.

Requirements

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

See Also

Reference

TdIntervalMinuteToSecond Structure
TdIntervalMinuteToSecond Members
Overload List