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



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

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

TdTime Structure
TdTime Members
Overload List