How to write current time to GMT in one MySQL query in UNIX timestamp?

SELECT UNIX_TIMESTAMP(CONVERT_TZ(CURRENT_TIMESTAMP,’+05:30′,’+00:00′));

 

o/p

1380010908

Leave a Reply