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



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > TdTimestampWithTimeZone Constructor : TdTimestampWithTimeZone Constructor(Int32,Int32,Int32,Int32,Int32,Int32)
The year of the specified timestamp. Valid values are 0001-9999.
The month of the specified timestamp. Valid values are 01-12.
The day of the specified timestamp. Valid values are 1-31.
The hour of the specified timestamp. Valid values are 0-23.
The minute of the specified timestamp. Valid values are 0-59.
The second of the specified timestamp. Valid values are 0-59.
TdTimestampWithTimeZone is created from the date and time components specified as integers.
Syntax
'Declaration
 
Public Function New( _
   ByVal year As Integer, _
   ByVal month As Integer, _
   ByVal day As Integer, _
   ByVal hour As Integer, _
   ByVal minute As Integer, _
   ByVal second As Integer _
)
'Usage
 
Dim year As Integer
Dim month As Integer
Dim day As Integer
Dim hour As Integer
Dim minute As Integer
Dim second As Integer
 
Dim instance As New TdTimestampWithTimeZone(year, month, day, hour, minute, second)
public TdTimestampWithTimeZone( 
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second
)
public:
TdTimestampWithTimeZone( 
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second
)

Parameters

year
The year of the specified timestamp. Valid values are 0001-9999.
month
The month of the specified timestamp. Valid values are 01-12.
day
The day of the specified timestamp. Valid values are 1-31.
hour
The hour of the specified timestamp. Valid values are 0-23.
minute
The minute of the specified timestamp. Valid values are 0-59.
second
The second of the specified timestamp. Valid values are 0-59.
Exceptions
ExceptionDescription
A date or time component is not in the valid range.
Remarks

The UTC offset will be set to the local time zone of the machine, and the scale will default to the minimum scale of 0.

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