postgre将本地当前时间转为其他时区当前时间

例如本地utc,目标时区沙特 utc+3,则

SELECT now()::timestamp, now()::timestamp at time zone 'utc+3'

结果

nowtimezone
2017-04-18 03:09:17.421181 2017-04-18 06:09:17.421181+00

 

posted @ 2017-04-18 11:11  Els0n  阅读(1099)  评论(1编辑  收藏  举报