postgre将本地当前时间转为其他时区当前时间
例如本地utc,目标时区沙特 utc+3,则
SELECT now()::timestamp, now()::timestamp at time zone 'utc+3'
结果
now | timezone |
---|---|
2017-04-18 03:09:17.421181 | 2017-04-18 06:09:17.421181+00 |
sort of, I have some experience in the domain of database(MySQL/mongo), java, python, front-end, etc. I'll willing to give and accept bits of help from others.
now base in Singapore.