今天0点到现在过去了多久?
计算方法:strtotime(date(“H:i:s”))
这样是不对的
strtotime(date(“H:i:s”)) == time()
正确的方法:time() - strtotime(date(“Y-m-d”))
strtotime 只给时分秒导致踩坑
最新推荐文章于 2023-06-15 11:12:41 发布
今天0点到现在过去了多久?
计算方法:strtotime(date(“H:i:s”))
这样是不对的
strtotime(date(“H:i:s”)) == time()
正确的方法:time() - strtotime(date(“Y-m-d”))