SQL - Scalar functions - JULIAN_DAY
Returns an integer value representing the number of days from January 1, 4713 B.C. (the start of the Julian date calendar) to the date value specified in the argument.
The schema is SYSFUN.
The result of the function is INTEGER. The result can be null; if the argument is null, the result is the null value.