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



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

Parameters

value
A TimeSpan.

Return Value

A TdIntervalDayToHour interval.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalDayToHour.MaxValue or less than the TdIntervalDayToHour.MinValue.
Remarks
TimeSpan fractional seconds, seconds and minutes will be truncated during conversion into a TdIntervalDayToHour 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

TdIntervalDayToHour Structure
TdIntervalDayToHour Members
Overload List