Send feedback on this topic.
Teradata.Client.Provider
Intersect Method (TdPeriodTimeWithTimeZone)



Teradata.Client.Provider Namespace > TdPeriodTimeWithTimeZone Structure : Intersect Method
The left TdPeriodTimeWithTimeZone operand.
The right TdPeriodTimeWithTimeZone operand.
The intersection between the left and right operands is calculated.
Syntax
'Declaration
 
Public Shared Function Intersect( _
   ByVal left As TdPeriodTimeWithTimeZone, _
   ByVal right As TdPeriodTimeWithTimeZone _
) As TdPeriodTimeWithTimeZone
'Usage
 
Dim left As TdPeriodTimeWithTimeZone
Dim right As TdPeriodTimeWithTimeZone
Dim value As TdPeriodTimeWithTimeZone
 
value = TdPeriodTimeWithTimeZone.Intersect(left, right)

Parameters

left
The left TdPeriodTimeWithTimeZone operand.
right
The right TdPeriodTimeWithTimeZone operand.

Return Value

A period that is the intersection between the left and right operands is returned.
Remarks

A TdPeriodTimeWithTimeZone.Null is returned under the following scenarios:

In the following examples (bL, eL) is the left operand and (bR, eR) is the right operand.

Example Comments
            |-----|-------|------|
            bL    bR      eL     eR
                  |=========|
            
Intersection = (bR, eL)
            |------|-------|--------|
            bL     bR      eR       eL
                   |=======|  
            
Intersection = (bR, eR)
            |------------|-----------|
            bL         eL bR         eR
            

Intersection = null

The ending bound of the first operand is the same as the starting bound of the second operand, eL = bR.

            |-----------|---|--------|
            bL          eL  bR       eR
            

Intersection = null

The periods do not intersect.

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

TdPeriodTimeWithTimeZone Structure
TdPeriodTimeWithTimeZone Members