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



Teradata.Client.Provider Namespace > TdIntervalDay Structure > TdIntervalDay Constructor : TdIntervalDay Constructor(Int32)
Number of days.
An instance of TdIntervalDay is created from a time component specified as an integer.
Syntax
'Declaration
 
Public Function New( _
   ByVal days As Integer _
)
'Usage
 
Dim days As Integer
 
Dim instance As New TdIntervalDay(days)
public TdIntervalDay( 
   int days
)
public:
TdIntervalDay( 
   int days
)

Parameters

days
Number of days.
Exceptions
ExceptionDescription
The day parameter specifies a TdIntervalDay value less than TdIntervalDay.MinValue or greater than TdIntervalDay.MaxValue.
Remarks

The number of days are converted into a TdIntervalDay and evaluated against TdIntervalDay.MinValue and TdIntervalDay.MaxValue. The TdIntervalDay.Precision is then calculated from the number of digits contained within the interval day component.

For example, 99 days is first converted into a TdIntervalDay. Precision is calculated to be a value of 2 representing two significant digits in the day.

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

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdIntervalDay Structure
TdIntervalDay Members
Overload List