您的位置 首页 技术

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

php怎么获得昨天0点的时间戳? 获得昨天0点时间戳 strtotime('yesterday') 获得昨天晚上24点整时间戳 strtotime(date(&…

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

获得昨天0点时间戳

strtotime('yesterday')

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

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

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

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

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

以上就是php怎么获得昨天0点的时间戳的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/20156.html

为您推荐

返回顶部