Constructor for IOracleIntervalYearToMonth using year and month. All arguments must be integral numbers.
year value
month value
new IOracleIntervalYearToMonth
Adds the interval to another interval and returns the resulting interval
the other interval
the resulting interval as IOracleIntervalYearToMonth
Divides the interval by an OracleNumber or JavaScript number and returns the resulting interval
the dividend used in the division
the resulting interval
Returns the total number of months from the interval
the total number of months from the interval
Returns the number of years from the interval
the number of years from the interval
Multiplies the interval with an OracleNumber or a JavaScript number and returns the resulting interval
the factor used in the multiplication
the resulting interval
Subtracts another interval from the interval and returns the resulting interval
the other interval
the resulting interval as IOracleIntervalYearToMonth
Given an interval, produces a string representing the interval. The string is formatted with at least 2 digits for the number of years.
a string representing the year-to-month interval
Produces a string representing the interval. The string is formatted according to the specified precision for days and fractional seconds.
The number of digits used to represent years in the interval string.
a string representing the interval
StaticcompareCompares two intervals. Returns -1 if i1 < i2, 0 if they are equal, and 1 if i1 > i2.
first interval to use for the comparison
second interval to use for the comparison
the result of the comparison as a number between -1 and +1.
StaticfromReturns an IOracleIntervalYearToMonth for the given number of years. If the number of years contains a fractional part, the number of months will be set accordingly.
new IOracleIntervalYearToMonth for the given number of years.
StaticfromParse an interval string into IOracleIntervalYearToMonth. fromString accepts the same input formats as the Oracle SQL function TO_YMINTERVAL:
string to parse
new IOracleIntervalYearToMonth
JavaScript API for Oracle type INTERVAL YEAR TO MONTH.