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



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > TdTimestampWithTimeZone Constructor : TdTimestampWithTimeZone Constructor(Int32,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.
The number of microseconds.
An instance of 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, _
   ByVal microsecond 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 microsecond As Integer
 
Dim instance As New TdTimestampWithTimeZone(year, month, day, hour, minute, second, microsecond)
public TdTimestampWithTimeZone( 
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second,
   int microsecond
)
public:
TdTimestampWithTimeZone( 
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second,
   int microsecond
)

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.
microsecond
The number of microseconds.
Exceptions
ExceptionDescription
A date or time component is not in the valid range.
Remarks

A microsecond is 10^-6 of a second (.000001).

The UTC offset will default to the local time zone of the machine, and the scale will default to the scale of the microsecond parameter.

When the TdTimestamp is created, the microsecond parameter will be divided by 10^6 to create the fractional component of TdTimestamp. For example, if 231 were passed in as the microsecond, the fractional component will be set to ".000231", and the scale will be 6.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.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