Send feedback on this topic.
Teradata.Client.Provider
Normalize Method (TdPeriodTime)



Teradata.Client.Provider Namespace > TdPeriodTime Structure : Normalize Method
The left TdPeriodTime operand.
The right TdPeriodTime operand.
A TdPeriodTime that contains a period that encompasses both periods of the left and right operands. The beginning bound is defined as the minimum of left and right beginning bounds, and the ending bound is defined as the maximum of the left and right ending bounds. The operands must either meet or overlap.
Syntax
'Declaration
 
Public Shared Function Normalize( _
   ByVal left As TdPeriodTime, _
   ByVal right As TdPeriodTime _
) As TdPeriodTime
'Usage
 
Dim left As TdPeriodTime
Dim right As TdPeriodTime
Dim value As TdPeriodTime
 
value = TdPeriodTime.Normalize(left, right)
public static TdPeriodTime Normalize( 
   TdPeriodTime left,
   TdPeriodTime right
)
public:
static TdPeriodTime Normalize( 
   TdPeriodTime left,
   TdPeriodTime right
) 

Parameters

left
The left TdPeriodTime operand.
right
The right TdPeriodTime operand.

Return Value

A TdPeriodTime is returned whose period includes both operands.
Remarks

A TdPeriodTime.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
            |=======================|
            
Normalize = (bL, eR)
            |--------|--------|------|
            bR      bL       eR     eL
            =========================|
            
Normalize = (bR, eL)
            |-------|--------|-------|
            bL      bR       eR      eL
            |========================|
            
Normalize = (bL, eL)
            |--------|--------|-----|
            bR       bL       eL    eR
            |=======================|
            
Normalize = (bR, eR)
            |---------|---------|
            bL      eL bR       eR
            |===================|
            
Normalize = (bL, eR)
            |-------|-------|---------|
            bL      eL      bR        eR
            

Normalize = TdPeriodTime.Null

The periods do not overlap.

Requirements

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

See Also

Reference

TdPeriodTime Structure
TdPeriodTime Members