它与 UNIX_TIMESTAMP() 完全相反,可以借助 FROM_UNIXTIME() 函数来完成。例如,11576070 秒将是 TIMESTAMP ‘1970-05-15 05:04:30’。
mysql> Select FROM_UNIXTIME(11576070);
+--------------------------------+
| FROM_UNIXTIME(11576070) |
+--------------------------------+
| 1970-05-15 05:04:30 |
+--------------------------------+
1 row in set (0.00 sec)