year: An INTEGER expression evaluating to a value from 1 to 9999.
month: An INTEGER expression evaluating to a value from 1 (January) to 12 (December).
day: An INTEGER expression evaluating to a value from 1 to 31.
hour: An INTEGER expression evaluating to a value between 0 and 23.
min: An INTEGER expression evaluating to a value between 0 and 59.
sec: A numeric expression evaluating to a value between 0 and 60.
timezone: An optional STRING expression evaluating to a valid timezone string. For example: CET, UTC.
Returns
A TIMESTAMP.
In Databricks SQL, if any of the arguments is out of bounds, the result is NULL.
In Databricks Runtime, if any of the arguments are out of bounds, the function returns an error unless spark.sql.ansi.enabled is false, in which case the function returns NULL.
If sec is 60 it is interpreted as 0 and a minute is added to the result.