时间戳转化为日期:date("Y-m-d H:i:s",time()); 日期转化为时间戳:strtotime(‘2012-12-7‘);
时间戳和日期格式转换
原文:http://www.cnblogs.com/xiaobiaomei/p/7803474.html