sql - reverse to "at time zone" in postgres -
i need convert timestamp 'europe/zurich' timezone , utc_offset automatically since depends on daylight saving time or not (either gmt+1 or gmt+2)
for example: 9:00:00 (timestamp without time zone) become 11:00:00 ('europe/zurich')
at time zone 'europe/zurich' gives me 07:00:00
i can join table pg_timezone_names , set
time_stamp + utc_offset but there might quicker/more optimized solutions out there. 'of time zone'...
many thanks!!
Comments
Post a Comment