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



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

Parameters

value
The TdTime that is to be converted.

Return Value

a TdPeriodTime is returned that has a beginning bound of value and ending bound that is one time granule greater than value.
Exceptions
ExceptionDescription
The ending bound could not be created because the value is set to TdTime.MaxValue
Remarks

A TdTime can be cast to a TdPeriodTime. The beginning bounds of the period will be value, and the ending bound will be the value plus one time granule.

The scale of the period will be the same as that of value.

The following are examples of the result of casting a TdTime to a TdPeriodTime:

TdTime TdPeriodTime 00:00:00 (00:00:00, 00:00:01 23:59:59.00001 (23:59:59.00001, 23:59:59.00002) 23:59:59.8 (23:59:59.8, 23:59:59.9)

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

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members
Overload List