Send feedback on this topic.
Teradata.Client.Provider
TdTimestampWithTimeZone Constructor(DateTime,TimeSpan)



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > TdTimestampWithTimeZone Constructor : TdTimestampWithTimeZone Constructor(DateTime,TimeSpan)
The DateTime structure that will be used to build the date and time components.
The UTC offset. The offset can range from -12:59 to +13:00.
Initializes a new instance of TdTimestampWithTimeZone using the specified DateTime structure and UTC offset.
Syntax
'Declaration
 
Public Function New( _
   ByVal dateTime As Date, _
   ByVal utcOffset As TimeSpan _
)
'Usage
 
Dim dateTime As Date
Dim utcOffset As TimeSpan
 
Dim instance As New TdTimestampWithTimeZone(dateTime, utcOffset)
public TdTimestampWithTimeZone( 
   DateTime dateTime,
   TimeSpan utcOffset
)
public:
TdTimestampWithTimeZone( 
   DateTime dateTime,
   TimeSpan utcOffset
)

Parameters

dateTime
The DateTime structure that will be used to build the date and time components.
utcOffset
The UTC offset. The offset can range from -12:59 to +13:00.
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 DateTimeKind property will be ignored when the time components of the TdTimestampWithTimeZone 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 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List