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
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalHour Structure
TdIntervalHour Members
Overload List