将1960-01-01 转化成时间戳
SELECT TIMESTAMPDIFF(second,FROM_UNIXTIME(0),'1960-01-01 00:00:00');
然后你就获得-315648000这个值
还有将负数时间戳格式化
SELECT DATE_FORMAT(DATE_ADD(FROM_UNIXTIME(0),INTERVAL -315648000/1000 SECOND),'%Y-%m-%d %h:%i:%s') AS DATE
就会获得1960-01-01
SELECT TIMESTAMPDIFF(second,FROM_UNIXTIME(0),'1960-01-01 00:00:00');
然后你就获得-315648000这个值
SELECT DATE_FORMAT(DATE_ADD(FROM_UNIXTIME(0),INTERVAL -315648000/1000 SECOND),'%Y-%m-%d %h:%i:%s') AS DATE
就会获得1960-01-01