$dateStr为Y-m-d格式 //0点 $timestamp = strtotime($dateStr); //24点 $timestamp = strtotime($dateStr) + 86400;