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