Send feedback on this topic.
Teradata.Client.Provider
Explicit Type Conversion(TdPeriodTimestamp,TdPeriodDate) Operator



Teradata.Client.Provider Namespace > TdPeriodDate Structure > Explicit Type Conversion Operator : Explicit Type Conversion(TdPeriodTimestamp,TdPeriodDate) Operator
The TdPeriodDate that will be converted into a TdPeriodTimestamp.
Converts a TdPeriodDate into a TdPeriodTimestamp.
Syntax
'Declaration
 
Overloads Public Operator Narrowing CType( _
   ByVal value As TdPeriodDate _
) As TdPeriodTimestamp
'Usage
 
public TdPeriodTimestamp operator explicit( 
   TdPeriodDate value
)
public:
TdPeriodTimestamp operator explicit( 
   TdPeriodDate value
)

Parameters

value
The TdPeriodDate that will be converted into a TdPeriodTimestamp.

Return Value

A TdPeriodTimestamp is returned.
Remarks

If the ending bound is set to UNTIL_CHANGED for the TdPeriodDate, the ending bound of the result will be set to the equivalent value of UNTIL_CHANGED for the resulting TdPeriodTimestamp. The time components for the beginning bound of the result will be set to "00:00:00.000000", and the Scale of the period is set to 6.

If the end bound is not UNTIL_CHANGED, the time components for both the beginning and ending bounds will be set to "00:00:00", and the Scale of the period is set to 0.

Requirements

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

See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members
Overload List
Period Type Arithmetic Operations: UNTIL_CHANGED