Send feedback on this topic.
Teradata.Client.Provider
TdPeriodTimeWithTimeZone Constructor(TdTimeWithTimeZone,TdTimeWithTimeZone,Byte)



Teradata.Client.Provider Namespace > TdPeriodTimeWithTimeZone Structure > TdPeriodTimeWithTimeZone Constructor : TdPeriodTimeWithTimeZone Constructor(TdTimeWithTimeZone,TdTimeWithTimeZone,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 TdTimeWithTimeZone structures that represent the lower and upper bounds of the duration.
Syntax
'Declaration
 
Public Function New( _
   ByVal beginBound As TdTimeWithTimeZone, _
   ByVal endBound As TdTimeWithTimeZone, _
   ByVal scale As Byte _
)
'Usage
 
Dim beginBound As TdTimeWithTimeZone
Dim endBound As TdTimeWithTimeZone
Dim scale As Byte
 
Dim instance As New TdPeriodTimeWithTimeZone(beginBound, endBound, scale)
public TdPeriodTimeWithTimeZone( 
   TdTimeWithTimeZone beginBound,
   TdTimeWithTimeZone endBound,
   byte scale
)
public:
TdPeriodTimeWithTimeZone( 
   TdTimeWithTimeZone beginBound,
   TdTimeWithTimeZone 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

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

See Also

Reference

TdPeriodTimeWithTimeZone Structure
TdPeriodTimeWithTimeZone Members
Overload List