Convert a UTC timezone in postgresql to EST (local time)

后端 未结 6 1059
野趣味
野趣味 2020-12-24 11:00

I am new to PostgreSQL and I was wondering if there is a direct way to just convert the timestamp values in a table to a different timezone using a function. In my case it i

6条回答
  •  我在风中等你
    2020-12-24 11:34

    Similarly execute

    SELECT '2015-10-24 16:38:46'::timestamp AT time zone 'EST';
    
    timezone
    ------------------------
     2015-10-24 21:38:46+00
    (1 row)
    

提交回复
热议问题