snowflake.snowpark.functions.interval_year_month_from_parts¶
- snowflake.snowpark.functions.interval_year_month_from_parts(years: Optional[Union[Column, str]] = None, months: Optional[Union[Column, str]] = None, _alias_column_name: Optional[bool] = True) Column[source]¶
Creates a year-month interval expression using with specified years and months.
This YearMonthInterval is not to be confused with the interval created by make_interval. You can define a table column to be of data type YearMonthIntervalType.
- Parameters:
years – The number of years, positive or negative
months – The number of months, positive or negative
_alias_column_name – If true, alias the column name to a cleaner value
- Returns:
A Column representing a year-month interval
Example: