$a = '2014-12-30 00:00:00'; $b = '2014-12-30 00:10:00'; echo strtotime($a)." "; //1419894000 echo strtotime($b); //1419894600
相差10分钟(600秒),时间戳就是600