php - Laravel时间函数问题
大家讲道理
大家讲道理 2017-04-10 17:19:44
0
1
227

Laravel时间函数问题,
比如现在的时间是:2016-04-21 14:53:20
我想显示30天后的那一天的最后一秒,就是2016-05-21 23:59:59
应该怎么做呢?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
PHPzhong
$time = strtotime('2016-04-21 14:53:20');
echo date('Y-m-d 23:59:59',strtotime('+1 month',$time));
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template