scalar-extension

AT TIME ZONE

Interpret a naive timestamp in a zone, or convert a zoned timestamp to local wall time. Return type depends on input type.

Formal Syntax & Structure

sql syntaxsql
timestamp AT TIME ZONE zone

Working Example

Example Snippetsql
SELECT timestamptz '2025-01-01 00:00:00+00' AT TIME ZONE 'UTC';
SQL Reference