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



Teradata.Client.Provider Namespace > TdTimestamp Structure > TdTimestamp Constructor : TdTimestamp Constructor(DateTime,Int32)
The DateTime structure that will be used to build the date and time components.
The scale of the timestamp. The scale can range from 0 - 6.
Initializes a new instance of TdTimestamp using the specified DateTime structure.
Syntax
'Declaration
 
Public Function New( _
   ByVal dateTime As Date, _
   ByVal scale As Integer _
)
'Usage
 
Dim dateTime As Date
Dim scale As Integer
 
Dim instance As New TdTimestamp(dateTime, scale)
public TdTimestamp( 
   DateTime dateTime,
   int scale
)
public:
TdTimestamp( 
   DateTime dateTime,
   int scale
)

Parameters

dateTime
The DateTime structure that will be used to build the date and time components.
scale
The scale of the timestamp. The scale can range from 0 - 6.
Exceptions
ExceptionDescription
The scale is not between 0 and 6.
Remarks

The DateTimeKind property will be ignored when the time components of the TdTimestamp structure is initialized with the time components from the DateTime structure. Therefore, adjustments will not be made for local time.

If the fraction contained in the DateTime structure contains more digits than what has been specified in the scale, the fraction will be truncated to match the scale.

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

TdTimestamp Structure
TdTimestamp Members
Overload List