INTERVAL_TO_SECONDS_UDF

Definition

Transforms interval to seconds.

PUBLIC.INTERVAL_TO_SECONDS_UDF
(INPUT_PART VARCHAR(30), INPUT_VALUE VARCHAR())

Parameters

INPUT_PART VARCHAR

The interval to be converted to seconds.

INPUT_VALUE VARCHAR

The type to be converted. E.g. 'DAY', 'DAY TO HOUR', etc.

Returns

A decimal with the processed interval as seconds.

Last updated