In MySQL caculating offset for a time zone

后端 未结 8 1803
死守一世寂寞
死守一世寂寞 2020-12-08 22:22

Is there a way in MySQL to calculate the offset for any timezone? For example, to get the local time in the timezone Asia/calcutta. What I want to do is calcula

8条回答
  •  孤街浪徒
    2020-12-08 22:39

    SET time_zone = '-07:00';
    

    You can just pass in an offset

    http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html

提交回复
热议问题