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



Teradata.Client.Provider Namespace > TdPeriodDate Structure : Normalize Method
The left TdPeriodDate operand.
The right TdPeriodDate operand.
A TdPeriodDate 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 TdPeriodDate, _
   ByVal right As TdPeriodDate _
) As TdPeriodDate
'Usage
 
Dim left As TdPeriodDate
Dim right As TdPeriodDate
Dim value As TdPeriodDate
 
value = TdPeriodDate.Normalize(left, right)
public static TdPeriodDate Normalize( 
   TdPeriodDate left,
   TdPeriodDate right
)
public:
static TdPeriodDate Normalize( 
   TdPeriodDate left,
   TdPeriodDate right
) 

Parameters

left
The left TdPeriodDate operand.
right
The right TdPeriodDate operand.

Return Value

A TdPeriodDate is returned whose period includes both operands.
Remarks

A TdPeriodDate.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 = TdPeriodDate.Null

The periods do not overlap.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members