好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

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

获得昨天0点时间戳

strtotime('yesterday')

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

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

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

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

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

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

查看更多关于php怎么获得昨天0点的时间戳的详细内容...

  阅读:46次