Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
-- set timezone to 'Europe/Moscow'; -- select -- '2023-01-01 00:00:00'::timestamptz as timestamp -- , '2023-01-01 00:00:00'::timestamptz at time zone 'UTC' as timestamp_utc -- , extract(year from '2023-01-01 00:00:00'::timestamptz) as year -- , extract(year from '2023-01-01 00:00:00'::timestamptz at time zone 'UTC') as year_utc -- ; set timezone to 'UTC'; select '2021-01-01'::timestamptz = '2021-01-01 00:00:00+00'::timestamptz;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear