JULIAN_DAY_UDF

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

Definition

Calculates the Julian day of a given date, it is the amount of days that have passed since January 1, 4713 BC.

PUBLIC.JULIAN_DAY_UDF(INPUT TIMESTAMP_TZ)

Parameters

INPUT TIMESTAMP_TZ

The date whose Julian day will be calculated.

Returns

A varchar which is the Julian date calculated in the function.

Usage example

Input:

SELECT PUBLIC.JULIAN_DAY_UDF(DATE '2021-10-26');

Output:

'2459514'

Last updated