Voor India:
SELECT now() AT TIME ZONE 'Asia/Calcutta';
SELECT now()::timestamp AT TIME ZONE 'Asia/Kolkata';
SELECT now()::timestamp AT TIME ZONE '5:30';
Voor Nepal:
SELECT now()::timestamp AT TIME ZONE 'Asia/Katmandu';
SELECT now()::timestamp AT TIME ZONE 'NPT';
Om de tijdzone voor de hele sessie in te stellen:
SET time zone 'Asia/Calcutta';
Om het te resetten (naar de tijdzone ingesteld in postgresql.conf:
RESET time zone;
Vind meer in de systeemweergaven pg_timezone_names
en 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-handleiding over AT TIME ZONE
bouwen. Over tijdzones
.