INTERVAL_TO_SECONDS_UDF

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

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