SELECT CONVERT_TZ('2004-01-01 12:00:00','+00:00','+10:00'); : CONVERT_TZ « Date Time Functions « MySQL Tutorial






mysql>
mysql>
mysql>
mysql> SELECT CONVERT_TZ('2004-01-01 12:00:00','+00:00','+10:00');
+-----------------------------------------------------+
| CONVERT_TZ('2004-01-01 12:00:00','+00:00','+10:00') |
+-----------------------------------------------------+
| 2004-01-01 22:00:00                                 |
+-----------------------------------------------------+
1 row in set (0.00 sec)

mysql>








14.4.CONVERT_TZ
14.4.1.CONVERT_TZ(dt,from_tz,to_tz)
14.4.2.SELECT CONVERT_TZ('2004-01-01 12:00:00','+00:00','+10:00');