How do I find the unix timestamp for the start of the next day in php?

前端 未结 6 1154
梦毁少年i
梦毁少年i 2021-01-07 19:01

I have a unix timestamp for the current time. I want to get the unix timestamp for the start of the next day.

$current_timestamp = time();
$allowable_start_d         


        
6条回答
  •  半阙折子戏
    2021-01-07 19:59

    $tomorrow = strtotime('+1 day', strtotime(date('Y-m-d')));
    $secondsLeftToday = time() - $tomorrow;
    

提交回复
热议问题