For Indien:
SELECT now() AT TIME ZONE 'Asia/Calcutta';
SELECT now()::timestamp AT TIME ZONE 'Asia/Kolkata';
SELECT now()::timestamp AT TIME ZONE '5:30';
For Nepal:
SELECT now()::timestamp AT TIME ZONE 'Asia/Katmandu';
SELECT now()::timestamp AT TIME ZONE 'NPT';
Sådan indstilles tidszonen for hele sessionen:
SET time zone 'Asia/Calcutta';
For at nulstille det (til tidszonen indstillet i postgresql.conf:
RESET time zone;
Find mere i systemvisningerne pg_timezone_names
og pg_timezone_abbrevs
SELECT *
FROM pg_timezone_names
WHERE utc_offset BETWEEN '05:00:00' AND '06:00:00'
ORDER BY utc_offset;
SELECT *
FROM pg_timezone_abbrevs
WHERE utc_offset BETWEEN '05:00:00' AND '06:00:00'
ORDER BY utc_offset;
PostgreSQL-manual om AT TIME ZONE
konstruere. Om tidszoner
.