Send feedback on this topic.
Teradata.Client.Provider
TdPeriodTime Constructor(TdTime,TdTime,Byte)



Teradata.Client.Provider Namespace > TdPeriodTime Structure > TdPeriodTime Constructor : TdPeriodTime Constructor(TdTime,TdTime,Byte)
The starting time of the period.
The ending time of the period.
The scale that will be applied to both the beginning and ending bounds.
A period is created from two TdTime structures that represent the lower and upper bounds of the duration.
Syntax
'Declaration
 
Public Function New( _
   ByVal beginBound As TdTime, _
   ByVal endBound As TdTime, _
   ByVal scale As Byte _
)
'Usage
 
Dim beginBound As TdTime
Dim endBound As TdTime
Dim scale As Byte
 
Dim instance As New TdPeriodTime(beginBound, endBound, scale)
public TdPeriodTime( 
   TdTime beginBound,
   TdTime endBound,
   byte scale
)
public:
TdPeriodTime( 
   TdTime beginBound,
   TdTime endBound,
   byte scale
)

Parameters

beginBound
The starting time of the period.
endBound
The ending time of the period.
scale
The scale that will be applied to both the beginning and ending bounds.
Exceptions
ExceptionDescription
Either the begin or end date is null.
Ending bound is less than the beginning bound.
Remarks

There is a scenario that can occur when the bounds are being adjusted based on the scale parameter. If the adjustment of the ending bound causes the time to go into the next 24 hours, the period will be invalid. For example, suppose the begin and end parameters are

    10:21:32.2293+08:00, 23:59:59.99999+08:00

and a scale is 0. When the data has been adjusted the bounds of the period will be

    10:21:32+08:00, 00:00:00+08:00

This is an invalid period. In this situation, an ArgumentOutOfRangeException will get thrown.

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

TdPeriodTime Structure
TdPeriodTime Members
Overload List