[BigQuery] Format Unix seconds as a date and time

Created on November 30, 2026

In GoogleSQL, you can convert Unix seconds to a TIMESTAMP with TIMESTAMP_SECONDS, then use FORMAT_TIMESTAMP to display it in a specific time zone.

SELECT FORMAT_TIMESTAMP('%F %T', TIMESTAMP_SECONDS(1636285306), 'Asia/Tokyo')
  AS tokyo_time;

%F formats the date as year-month-day, and %T formats the time as hours, minutes, and seconds. The third argument makes the output use Tokyo time.

2021-11-07 20:41:46

Reference

BigQuery