Send feedback on this topic.
Teradata.Client.Provider
TdTime Constructor(TimeSpan,Int32)



Teradata.Client.Provider Namespace > TdTime Structure > TdTime Constructor : TdTime Constructor(TimeSpan,Int32)
A TimeSpan structure that represents the time. This must be specfied in 24 hour time.
The scale of the time. The scale can range from 0-6.
An instance of TdTime is created from the time component specified as a TimeSpan structure.
Syntax
'Declaration
 
Public Function New( _
   ByVal value As TimeSpan, _
   ByVal scale As Integer _
)
'Usage
 
Dim value As TimeSpan
Dim scale As Integer
 
Dim instance As New TdTime(value, scale)
public TdTime( 
   TimeSpan value,
   int scale
)
public:
TdTime( 
   TimeSpan value,
   int scale
)

Parameters

value
A TimeSpan structure that represents the time. This must be specfied in 24 hour time.
scale
The scale of the time. The scale can range from 0-6.
Exceptions
ExceptionDescription
Either the value or scale is out of range.
Remarks

If the fractional component of the TimeSpan structure contains more digits than what has been specified in the scale, the fraction component will be truncated to match the scale.

Requirements

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

See Also

Reference

TdTime Structure
TdTime Members
Overload List