Send feedback on this topic.
Teradata.Client.Provider
TdIntervalHourToMinute Constructor(TimeSpan)



Teradata.Client.Provider Namespace > TdIntervalHourToMinute Structure > TdIntervalHourToMinute Constructor : TdIntervalHourToMinute Constructor(TimeSpan)
A TimeSpan to initialize TdIntervalHourToMinute.
Construct an instance of TdIntervalHourToMinute using a TimeSpan.
Syntax
'Declaration
 
Public Function New( _
   ByVal timeSpan As TimeSpan _
)
'Usage
 
Dim timeSpan As TimeSpan
 
Dim instance As New TdIntervalHourToMinute(timeSpan)
public TdIntervalHourToMinute( 
   TimeSpan timeSpan
)
public:
TdIntervalHourToMinute( 
   TimeSpan timeSpan
)

Parameters

timeSpan
A TimeSpan to initialize TdIntervalHourToMinute.
Exceptions
ExceptionDescription
The timespan parameter specifies a TdIntervalHourToMinute value less than TdIntervalHourToMinute.MinValue or greater than TdIntervalHourToMinute.MaxValue.
Remarks

The TimeSpan value is converted into a TdIntervalHourToMinute and evaluated against TdIntervalHourToMinute.MinValue and TdIntervalHourToMinute.MaxValue. The TdIntervalHourToMinute.Precision is then calculated from the number of digits contained within the interval hour component.

After conversion of the TimeSpan value into a TdIntervalHourToMinute, any seconds or microseconds will be truncated. For example, a TimeSpan value created with a TimeSpan.Ticks value of 60201234567 results in a value of 0 days, 1 hours, 40 minutes and 20.1234567 seconds. The TdIntervalHourToMinute literal representation results in a TdIntervalHourToMinute value of '1:40'. The 20.1234567 seconds value is truncated. Precision is calculated to be a value of 1 representing one significant digit in the hour.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalHourToMinute Structure
TdIntervalHourToMinute Members
Overload List