php怎么获得昨天0点的时间戳

2020-07-29 19:39:21
php怎么获得昨天0点的时间戳?

获得昨天0点时间戳

strtotime('yesterday')

获得昨天晚上24点整时间戳

strtotime(date('Y-m-d'))

获得昨天晚上23:59:59时间戳

strtotime(date('Y-m-d')) - 1

更多PHP相关知识,请访问PHP教程!

相关文章 大家在看