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



Teradata.Client.Provider Namespace > TdPeriodTimestamp Structure : RightDiff Method
The left TdPeriodTimestamp operand.
The right TdPeriodTimestamp operand.
The period that contains the portion from the ending bound of the left operand to the ending bound of the right when the operands overlap.
Syntax
'Declaration
 
Public Shared Function RightDiff( _
   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.RightDiff(left, right)
public static TdPeriodTimestamp RightDiff( 
   TdPeriodTimestamp left,
   TdPeriodTimestamp right
)
public:
static TdPeriodTimestamp RightDiff( 
   TdPeriodTimestamp left,
   TdPeriodTimestamp right
) 

Parameters

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

Return Value

A TdPeriodTimestamp is returned that contains the period that begins from the end of the left operand to the end of the right when the operands overlap.
Remarks

A TdPeriodTimestamp.Null is returned under the following scenarios:

In the following examples the left and right operands are defined as (bL, eL) and (bR, eR), respectively.

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

Rdiff = null

The left operand's ending bound is greater than the ending bound of the right operand.

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

Rdiff = null

The left and right operands do not overlap.

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

Rdiff = null

The left and right operands do not overlap.

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

Rdiff = null

The ending bounds are equal. In other words, a period cannot be defined whose starting and ending bounds are equal.

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

TdPeriodTimestamp Structure
TdPeriodTimestamp Members