Function converts interval value(c1) into a numeric value. You must provide the unit for the output numeric value as the second argument to this function. Allowed values for the unit are: YEAR,MONTH.
Value 1 can be one of the following types: intervalym.
Value 2 can be one of the following types: text.
Returned value type will be double.