Send feedback on this topic.
Teradata.Client.Provider
Succeeds(TdPeriodTimestampWithTimeZone) Method



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure > Succeeds Method : Succeeds(TdPeriodTimestampWithTimeZone) Method
The TdPeriodTimestampWithTimeZone operand.
Indicates whether this instance succeeds the period value.
Syntax
'Declaration
 
Public Overloads Function Succeeds( _
   ByVal value As TdPeriodTimestampWithTimeZone _
) As Boolean
'Usage
 
Dim instance As TdPeriodTimestampWithTimeZone
Dim value As TdPeriodTimestampWithTimeZone
Dim value As Boolean
 
value = instance.Succeeds(value)
public bool Succeeds( 
   TdPeriodTimestampWithTimeZone value
)
public:
bool Succeeds( 
   TdPeriodTimestampWithTimeZone value
) 

Parameters

value
The TdPeriodTimestampWithTimeZone operand.

Return Value

A true is returned when this instance succeeds the value, otherwise a false is returned.
Remarks

A false will be returned if the value is TdPeriodTimestampWithTimeZone.Null.

This instance will succeed the value if the beginning bound of this instance is greater than or equal to the ending bound of the value.

It is not required that the UTC Offset of this instance and value be the same. The UTC representation of the bounds for both will be used to determine whether this instance succeeds the value.

In the following examples consider the Left operand to be this instance, and the Right as the value. The Left and Right operands are defined as (bL, eL) and (bR, eR), respectively.

Example Comments
            |--------|--------|
            bL     eL bR      eR
            

Succeeds = false

The left operand appears before the right operand.

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

Succeeds = false

The left operand appears before the right operand.

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

Succeeds = false

There is an intersection between the operands; therfore, the left does not succeed the right.

            |-------|--------|
            bR    eR bL      eL
            
Succeeds = true
            |-------|--|------|
            bR      eR bL    eL
            
Succeeds = true
Requirements

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

See Also

Reference

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List