seconds_to_timestamp(seconds)
Converts <seconds> to timestamp format '%Y-%m-%d %H:%M:%S'.
CREATE OR REPLACE FUNCTION `justfunctions.eu.seconds_to_timestamp`(`seconds` INT64)
RETURNS TIMESTAMP AS (TIMESTAMP(FORMAT_TIMESTAMP('%Y-%m-%d %H:%M:%S', TIMESTAMP_SECONDS(seconds))))
OPTIONS ( description = '''Converts <seconds> to timestamp format '%Y-%m-%d %H:%M:%S'.''')
Example
SELECT `justfunctions.eu.seconds_to_timestamp`(1687613655)
2023-06-24 13:00:01 UTC