Send feedback on this topic.
Teradata.Client.Provider
Addition(TdIntervalDayToSecond,TdTimestamp) Operator



Teradata.Client.Provider Namespace > TdTimestamp Structure > Addition Operator : Addition(TdIntervalDayToSecond,TdTimestamp) Operator
A TdIntervalDayToSecond that will be added to a TdTimestamp.
A TdTimestamp.
Adds the specified TdIntervalDayToSecond to a TdTimestamp.
Syntax
'Declaration
 
Overloads Public Operator +( _
   ByVal interval As TdIntervalDayToSecond, _
   ByVal timestamp As TdTimestamp _
) As TdTimestamp
'Usage
 
public TdTimestamp operator +( 
   TdIntervalDayToSecond interval,
   TdTimestamp timestamp
)
public:
TdTimestamp operator +( 
   TdIntervalDayToSecond interval,
   TdTimestamp timestamp
)

Parameters

interval
A TdIntervalDayToSecond that will be added to a TdTimestamp.
timestamp
A TdTimestamp.

Return Value

A TdTimestamp is returned that is the result of adding the TdIntervalDayToSecond to a TdTimestamp.
Exceptions
ExceptionDescription
Unable to add the specified TdIntervalDayToSecond to the TdTimestamp.
Remarks

If either parameter is Null a TdTimestamp.Null will be returned.

The TdIntervalDayToSecond interval will be added to a TdTimestamp.

If the scale between the timestamp and the interval are different, the arithmetic operation will be performed using the different scales. The result will then be truncated to match the scale of the TdTimestamp. For example, if the TdIntervalDayToSecond value of "222 10:25:40.61234" (222 days, 10 hours, 25 minutes and 40.61234 seconds) is added to the TdTimestamp value of "2008-10-10 12:50:56.2123" the operation will result in a TdTimestamp value of "2009-05-20 11:16:36 PM" with 824600 microseconds.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List