标签:
mysql> select FROM_UNIXTIME(1156219870,‘%y-%m-%d‘); +--------------------------------------+ | FROM_UNIXTIME(1156219870,‘%y-%m-%d‘) | +--------------------------------------+ | 06-08-22 | +--------------------------------------+ 1 row in set (0.03 sec) mysql> SELECT UNIX_TIMESTAMP(‘2006-11-04 12:23:00‘); +---------------------------------------+ | UNIX_TIMESTAMP(‘2006-11-04 12:23:00‘) | +---------------------------------------+ | 1162614180 | +---------------------------------------+ 1 row in set (0.00 sec)
标签:
原文地址:http://www.cnblogs.com/vinsonLu/p/5573355.html