获取当日凌晨的时间戳:
$today = strtotime(date("Y-m-d"),time());
获取任意指定时间戳凌晨的时间戳
<?php
date_default_timezone_set('Asia/Shanghai');
// 获取任意指定时间凌晨的时间戳
$time = 1583805957;
echo strtotime(date("Y-m-d",$time));
获取当日凌晨的时间戳:
$today = strtotime(date("Y-m-d"),time());
获取任意指定时间戳凌晨的时间戳
<?php
date_default_timezone_set('Asia/Shanghai');
// 获取任意指定时间凌晨的时间戳
$time = 1583805957;
echo strtotime(date("Y-m-d",$time));