DateTime('now') not modified after sleep()

前端 未结 0 1036
忘掉有多难
忘掉有多难 2020-11-28 00:06

I have following code

$now = new DateTime(\'now\');
$string1 = $now->format(\'Y-m-d H:i:s\');
sleep(5);
$now->modify(\'now\');        
$string2 = $now-&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题