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



Teradata.Client.Provider Namespace > TdIntervalDayToMinute Structure > TdIntervalDayToMinute Constructor : TdIntervalDayToMinute Constructor(Int32,Int32,Int32)
Number of days.
Number of hours.
Number of minutes.
An instance of TdIntervalDayToMinute is created from a day and time components specified as integers.
Syntax
'Declaration
 
Public Function New( _
   ByVal days As Integer, _
   ByVal hours As Integer, _
   ByVal minutes As Integer _
)
'Usage
 
Dim days As Integer
Dim hours As Integer
Dim minutes As Integer
 
Dim instance As New TdIntervalDayToMinute(days, hours, minutes)
public TdIntervalDayToMinute( 
   int days,
   int hours,
   int minutes
)
public:
TdIntervalDayToMinute( 
   int days,
   int hours,
   int minutes
)

Parameters

days
Number of days.
hours
Number of hours.
minutes
Number of minutes.
Exceptions
ExceptionDescription
The parameters specify a TdIntervalDayToMinute value less than TdIntervalDayToMinute.MinValue or greater than TdIntervalDayToMinute.MaxValue.
Remarks

The number of days, hours and minutes are constructed 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.

For example, 99 days, 28 hours and 75 minutes is first constructed into a TdIntervalDayToMinute. The TdIntervalDayToMinute literal representation results in a TdIntervalDayToMinute value of 100 days, 5 hours and 15 minutes within the range of less than or equal to MaxValue and greater than or equal to the MinValue. Precision is calculated to be a value of 3 representing three significant digits in the day.

A day value of 2000, 200000 hours and 0 minutes is first constructed into TdIntervalDayToMinute. The TdIntervalDayToMinute literal representation results in a TdIntervalDayToMinute value of 10,333 days and 8 hours exceeding the maximum value of '9999 23:59'.

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 TdIntervalDayToMinute. For instance, a day value of 200, an hour value of -4900 and a minute value of 30 will result in a TdIntervalDayToMinute interval value of -'4 03:30' with a calculated precision value of 1.

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