Send feedback on this topic.
Teradata.Client.Provider
Add(TimeSpan) Method



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure > Add Method : Add(TimeSpan) Method
The TimeSpan that will be added.
The specified TimeSpan will be added to this instance of TdPeriodTimestampWithTimeZone.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal timeSpan As TimeSpan _
) As TdPeriodTimestampWithTimeZone
'Usage
 
Dim instance As TdPeriodTimestampWithTimeZone
Dim timeSpan As TimeSpan
Dim value As TdPeriodTimestampWithTimeZone
 
value = instance.Add(timeSpan)

Parameters

timeSpan
The TimeSpan that will be added.

Return Value

A TdPeriodTimestampWithTimeZone is returned that is the result of the TimeSpan added to this instance of TdPeriodTimestampWithTimeZone.
Exceptions
ExceptionDescription
The result could not be represented as a TdPeriodTimestampWithTimeZone.
The TdPeriodTimestampWithTimeZone beginning bound is greater or equal to the ending bound of the period.
Remarks

If this instance of TdPeriodTimestampWithTimeZone is Null a TdPeriodTimestampWithTimeZone.Null will be returned.

The TimeSpan will be added to both the beginning and ending bounds.

The number of days will be calculated from the components that were specified when TimeSpan was initialized. Therefore, if a TimeSpan were initialized as new TimeSpan(47, 60, 20) (47 hours, 60 minutes, 20 seconds), what will be added to the TdPeriodTimestampWithTimeZone will be 2 days, 20 seconds.

Refer to Period Arithmetic for additional information.

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

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List