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

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

See Also

Reference

TdIntervalDayToHour Structure
TdIntervalDayToHour Members
Overload List