dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleIntervalYM Structure / Add Method / Add(Int32,Int32,Boolean,Int32,Int32,Boolean) Method
Number of years in the first interval.
Number of months in the first interval.
true if the first time interval is a positive value; otherwise, false.
Number of years in the second interval.
Number of months in the second interval.
true if the second time interval is a positive value; otherwise, false.

In This Topic
Add(Int32,Int32,Boolean,Int32,Int32,Boolean) Method
In This Topic
Adds two time intervals represented by their constituent parts.
Syntax
'Declaration
 
Public Overloads Shared Function Add( _
   ByVal year1 As Integer, _
   ByVal month1 As Integer, _
   ByVal isPositive1 As Boolean, _
   ByVal year2 As Integer, _
   ByVal month2 As Integer, _
   ByVal isPositive2 As Boolean _
) As OracleIntervalYM
 

Parameters

year1
Number of years in the first interval.
month1
Number of months in the first interval.
isPositive1
true if the first time interval is a positive value; otherwise, false.
year2
Number of years in the second interval.
month2
Number of months in the second interval.
isPositive2
true if the second time interval is a positive value; otherwise, false.

Return Value

An OracleIntervalYM structure.
See Also