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



Teradata.Client.Provider Namespace > TdIntervalHour Structure > Explicit Type Conversion Operator : Explicit Type Conversion(TdIntervalHour,TimeSpan) Operator
A TimeSpan.
Converts a TimeSpan to a TdIntervalHour.
Syntax
'Declaration
 
Overloads Public Operator Narrowing CType( _
   ByVal value As TimeSpan _
) As TdIntervalHour
'Usage
 
public TdIntervalHour operator explicit( 
   TimeSpan value
)
public:
TdIntervalHour operator explicit( 
   TimeSpan value
)

Parameters

value
A TimeSpan.

Return Value

A TdIntervalHour interval.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalHour.MaxValue or less than the TdIntervalHour.MinValue.
Remarks
TimeSpan fractional seconds, seconds and minutes will be truncated during conversion into a TdIntervalHour interval.
Requirements

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

See Also

Reference

TdIntervalHour Structure
TdIntervalHour Members
Overload List