mysql long to timestamp

https://intelligea.wordpress.com/2014/07/22/how-to-convert-big-int-timestamp-into-system-date-in-mysql/

-- 1559026800
SELECT UNIX_TIMESTAMP('2019-05-28 15:00:00')

-- 2019-05-28 15:00:00
SELECT FROM_UNIXTIME(1559026800)

你可能感兴趣的:(mysql long to timestamp)