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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -