type
TIMESTAMP WITH TIME ZONE
PostgreSQL stores an instant, not the original zone label. Output depends on session time zone; explicitly convert to UTC for deterministic examples. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
TIMESTAMP(p) WITH TIME ZONEWorking Example
Example Snippetsql
SELECT CAST(TIMESTAMP WITH TIME ZONE '2024-01-15 09:30:00+04' AT TIME ZONE 'UTC' AS TEXT);