SELECT UNIX_TIMESTAMP(CONVERT_TZ(CURRENT_TIMESTAMP,’+05:30′,’+00:00′));
o/p
1380010908
SELECT UNIX_TIMESTAMP(CONVERT_TZ(CURRENT_TIMESTAMP,’+05:30′,’+00:00′));
o/p
1380010908
SELECT CONVERT_TZ(CURRENT_TIMESTAMP,’+05:30′,’+00:00′)
o/p
2013-09-24 13:49:56
SELECT FROM_UNIXTIME(1380030402)
o/p
2013-09-24 19:16:42
SELECT UNIX_TIMESTAMP()
o/p
1380030402
You must be logged in to post a comment.