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



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

Parameters

seconds
Number of seconds.
Exceptions
ExceptionDescription
The parameters specify a TdIntervalSecond value less than TdIntervalSecond.MinValue or greater than TdIntervalSecond.MaxValue.
Remarks

The number of seconds is constructed into a TdIntervalSecond and evaluated against TdIntervalSecond.MinValue and TdIntervalSecond.MaxValue. The TdIntervalSecond.Scale is set to zero for this constructor. The TdIntervalSecond.Precision is calculated from the number of digits contained within the interval second component.

For example 300 seconds is first converted into a TdIntervalSecond and evaluated against MinValue and MaxValue. Precision is calculated to be a value of 3 representing three significant digits in 300 seconds. The scale is set to zero.

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

TdIntervalSecond Structure
TdIntervalSecond Members
Overload List