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



Teradata.Client.Provider Namespace > TdTimestamp Structure > TdTimestamp Constructor : TdTimestamp Constructor(DateTime)
The DateTime structure that will be used to build the date and time components.
Initializes a new instance of TdTimestamp using the specified DateTime structure.
Syntax
'Declaration
 
Public Function New( _
   ByVal dateTime As Date _
)
'Usage
 
Dim dateTime As Date
 
Dim instance As New TdTimestamp(dateTime)
public TdTimestamp( 
   DateTime dateTime
)
public:
TdTimestamp( 
   DateTime dateTime
)

Parameters

dateTime
The DateTime structure that will be used to build the date and time components.
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.

The DateTime structure can contain a fraction of a second that is up to seven digits. Teradata can only support a fraction that is 6 digits. Therefore, if the DateTime structure contains a fraction of a second that contains more than 6 digits, it will be truncated after the sixth position.

The scale will default to the number of digits contained in the fractional component of the DateTime structure. The maximum value it will be set to is 6.

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