DB
[mysql] SELECT CONVERT_TZ
'김용환'
2016. 2. 3. 17:58
SELECT CONVERT_TZ('2016-02-02 00:00:00','+00:00','+09:00');
'2016-02-02 09:00:00'
주어진 시간 정보(첫 번째 인자)으로 from시간(두 번째 인자)을 to시간(세 번째 인자)로 바꿔주는 mysql 함수이다.
참고
https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html
http://www.w3resource.com/mysql/date-and-time-functions/mysql-convert_tz-function.php