[PHP] 时间输出date()(几周后,几天后,下周几,上周几,时间戳加几天) →→→→→进入此内容的聊天室

来自 , 2021-01-15, 写在 PHP, 查看 181 次.
URL http://www.code666.cn/view/fd4f21f2
  1. //一周后
  2. date('Y-m-d h:i:s',strtotime('+1 week'));
  3.  
  4. //五小时后
  5. date('Y-m-d h:i:s',strtotime('+5 hours'));
  6.  
  7. //下周一
  8. date('Y-m-d h:i:s',strtotime('next Monday));
  9.  
  10. //上周日
  11. date('Y-m-d h:i:s',strtotime('last Sunday'));
  12.  
  13. //时间戳加1天
  14. date('Y-m-d h:i:s',strtotime('+1 day',12313223));
  15.  

回复 "时间输出date()(几周后,几天后,下周几,上周几,时间戳加几天)"

这儿你可以回复上面这条便签

captcha