Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql utc to local time

-- using named time zones
SELECT CONVERT_TZ('2018-01-01 12:00:00','UTC','MET');

-- using offset time zones
SELECT CONVERT_TZ('2018-01-01 12:00:00','+00:00','+10:00');
Source by popsql.com #
 
PREVIOUS NEXT
Tagged: #mysql #utc #local #time
ADD COMMENT
Topic
Name
9+5 =