时间戳

//开始时间为上个月月出
$time = date('Y-m-01' , time());
$stime = strtotime('-1 month' , strtotime($time));
//结束时间为 当月月底 下月月初之前
$etime = strtotime("+1 month", strtotime($time));
posted @ 2019-10-31 10:35  zhangsima  阅读(122)  评论(0编辑  收藏  举报