开发者

Changing mysql time

开发者 https://www.devze.com 2023-02-07 10:50 出处:网络
I have a table , in which there is a date column. This column is of type timestamp. Data in column is showing time in IST time zone . I want to convert it\'s data into another timezone.

I have a table , in which there is a date column. This column is of type timestamp. Data in column is showing time in IST time zone . I want to convert it's data into another timezone. Do you have any suggestions for it. I am using Mysql data开发者_如何学Gobase.


CONVERT_TZ (dt,from_tz,to_tz)

Example:

SELECT CONVERT_TZ('2006-01-01 11:00:00','+00:00','+10:00');
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号