php获取日期的0点和24点(时间戳)

$dateStr为Y-m-d格式

//0点
$timestamp = strtotime($dateStr);

//24点
$timestamp = strtotime($dateStr) + 86400;
相关文章
相关标签/搜索