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



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

Parameters

dateTimeOffset
The DateTimeOffset structure that will be used to build the date and time components.
Exceptions
ExceptionDescription
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
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List