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



Teradata.Client.Provider Namespace > TdTime Structure > TdTime Constructor : TdTime Constructor(Int32,Int32,Int32,Int32)
The hour of the specified time. Valid values are 0-23.
The minutes of the specified time. Valid value are 0-59.
The seconds of the specified time. Valid values are 0-59.
The number of microseconds of the specified time.
An instance of TdTime is create from the time components specfied as integers.
Syntax
'Declaration
 
Public Function New( _
   ByVal hour As Integer, _
   ByVal minute As Integer, _
   ByVal second As Integer, _
   ByVal microsecond As Integer _
)
'Usage
 
Dim hour As Integer
Dim minute As Integer
Dim second As Integer
Dim microsecond As Integer
 
Dim instance As New TdTime(hour, minute, second, microsecond)
public TdTime( 
   int hour,
   int minute,
   int second,
   int microsecond
)
public:
TdTime( 
   int hour,
   int minute,
   int second,
   int microsecond
)

Parameters

hour
The hour of the specified time. Valid values are 0-23.
minute
The minutes of the specified time. Valid value are 0-59.
second
The seconds of the specified time. Valid values are 0-59.
microsecond
The number of microseconds of the specified time.
Exceptions
ExceptionDescription
One of the time components is out of range.
Remarks

A microsecond is 10^-6 of a second (.000001).

The scale will default to the scale of the microsecond parameter.

When the time is created, the microsecond parameter is divided by 10^6 --this corresponds to a microsecond. This becomes the fractional portion of the time. For example, if "23" is specified as the microsecond, the fraction portion of the time is ".000023", and the scale will be 6. A microsecond of "2000" will become ".002000", and the scale will be 3.

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

TdTime Structure
TdTime Members
Overload List