Send feedback on this topic.
Teradata.Client.Provider
TdPeriodTimestamp Constructor(TdTimestamp,TdTimestamp,Byte)



Teradata.Client.Provider Namespace > TdPeriodTimestamp Structure > TdPeriodTimestamp Constructor : TdPeriodTimestamp Constructor(TdTimestamp,TdTimestamp,Byte)
The starting time of the period.
The ending time of the period.
The scale of the period.
A period is created from two TdTimestamp structures that represent the lower and upper bounds of the duration.
Syntax
'Declaration
 
Public Function New( _
   ByVal beginBound As TdTimestamp, _
   ByVal endBound As TdTimestamp, _
   ByVal scale As Byte _
)
'Usage
 
Dim beginBound As TdTimestamp
Dim endBound As TdTimestamp
Dim scale As Byte
 
Dim instance As New TdPeriodTimestamp(beginBound, endBound, scale)
public TdPeriodTimestamp( 
   TdTimestamp beginBound,
   TdTimestamp endBound,
   byte scale
)
public:
TdPeriodTimestamp( 
   TdTimestamp beginBound,
   TdTimestamp endBound,
   byte scale
)

Parameters

beginBound
The starting time of the period.
endBound
The ending time of the period.
scale
The scale of the period.
Exceptions
ExceptionDescription
Either the begin or end date is null.
Ending bound is less than the beginning bound or the scale is not in the valid range.
The scale specified will cause either the beginning or ending bound to be truncated.
Remarks

The scale cannot cause the truncation of either the beginning or ending bounds. The reason for this is that if the scale of the beginning or ending bounds is truncated it is possible the the resulting period will be invalid. For example, suppose a period is to be created with a scale of 1 from the two timestamp: "1010-11-23 17:10:33.0121", and "1010-11-23 17:10:33.0999". If the scale of both these timestamp are readjusted to 1, both the beginning and ending bounds will be "1010-11-23 17:10:33.0121". The beginning and ending bounds of a period cannot be equal.

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

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List