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



Teradata.Client.Provider Namespace > TdTime Structure > TdTime Constructor : TdTime Constructor(Int32,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.
The scale of the time. Valid values are 0-6.
An instance of TdTime is created 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, _
   ByVal scale As Integer _
)
'Usage
 
Dim hour As Integer
Dim minute As Integer
Dim second As Integer
Dim microsecond As Integer
Dim scale As Integer
 
Dim instance As New TdTime(hour, minute, second, microsecond, scale)
public TdTime( 
   int hour,
   int minute,
   int second,
   int microsecond,
   int scale
)
public:
TdTime( 
   int hour,
   int minute,
   int second,
   int microsecond,
   int scale
)

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.
scale
The scale of the time. Valid values are 0-6.
Exceptions
ExceptionDescription
One of the time components is out of range.
Remarks

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

When the time is created, the microsecond parameter will first be divided by 10^6 --this corresponds to a microsecond. Then this fractional portion of the timestamp will be truncated at the position specified by the scale. For example, if "231" were passed in as the microsecond and 6 as the scale, the fraction component will be set to ".000231". However, if the microsecond is 23145 and the scale is 3, the fractional component will be ".023"

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdTime Structure
TdTime Members
Overload List