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