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



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

Parameters

interval
A TdIntervalDayToSecond that will be added to a TdDate.
date
A TdDate.

Return Value

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

If the interval or this instance is Null a TdDate.Null will be returned.

The only component of the TdIntervalDayToSecond that will be considered is the day component. When this operation is performed, the TdIntervalDayToSecond.Days component of the TdIntervalDayToSecond is added to the this instance of TdDate. For example, if the date is "2007-10-04" and the interval is "5 03:20:30" (5 days, 3 hours, 20 minutes and 30 seconds) the operation will result in "2007-10-09".

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDate Structure
TdDate Members
Overload List