php获取当天的零时和二十四时(0点和24点)

<?php
$todayStart= date('Y-m-d 00:00:00', time()); //2019-01-17 00:00:00
$todayEnd= date('Y-m-d 23:59:59', time()); //2019-01-17 23:59:59

猜你喜欢

转载自blog.csdn.net/weixin_38787928/article/details/86526640