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



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > TdTimestampWithTimeZone Constructor : TdTimestampWithTimeZone Constructor(DateTimeOffset,Int32)
The DateTimeOffset 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 TdTimestampWithTimeZone using the specified DateTimeOffset structure and offset.
Syntax
'Declaration
 
Public Function New( _
   ByVal dateTimeOffset As DateTimeOffset, _
   ByVal scale As Integer _
)
'Usage
 
Dim dateTimeOffset As DateTimeOffset
Dim scale As Integer
 
Dim instance As New TdTimestampWithTimeZone(dateTimeOffset, scale)
public TdTimestampWithTimeZone( 
   DateTimeOffset dateTimeOffset,
   int scale
)
public:
TdTimestampWithTimeZone( 
   DateTimeOffset dateTimeOffset,
   int scale
)

Parameters

dateTimeOffset
The DateTimeOffset 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, UTC Offset, or the UTC representation of the timestamp is out of the valid range.
The minutes and seconds of the UTC Offset must be 0.
Remarks

The DateTimeOffset structure can contain a fraction of a second that is more than 6 digits. Teradata can only support a fraction that is 6 digits. Therefore, if the DateTimeOffset 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 DateTimeOffset structure. The maximum value it will be set to is 6.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List