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



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

Parameters

left
The left TdPeriodTimestamp operand.
right
The right TdPeriodTimestamp operand.

Return Value

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

A TdPeriodTimestamp.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

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

See Also

Reference

TdPeriodTimestamp Structure
TdPeriodTimestamp Members