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



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > TdTimestampWithTimeZone Constructor : TdTimestampWithTimeZone Constructor(DateTime,Int32,TimeSpan)
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.
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 scale As Integer, _
   ByVal utcOffset As TimeSpan _
)
'Usage
 
Dim dateTime As Date
Dim scale As Integer
Dim utcOffset As TimeSpan
 
Dim instance As New TdTimestampWithTimeZone(dateTime, scale, utcOffset)
public TdTimestampWithTimeZone( 
   DateTime dateTime,
   int scale,
   TimeSpan utcOffset
)
public:
TdTimestampWithTimeZone( 
   DateTime dateTime,
   int scale,
   TimeSpan utcOffset
)

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.
utcOffset
The UTC offset. The offset can range from -12:59 to +13:00.
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 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.

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 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List