php: +1天, +3个月, strtotime():  +1 day, +3 month

比如,我现在当前时间基础上+1天:

strtotime("+1 day");

 

比如我现在,2014-05-01时间上 + 3个月

$s = strtotime("2014-05-01");

$d = strtotime("+3 month", $s);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2021-10-10
  • 2021-06-24
猜你喜欢
  • 2021-05-18
  • 2021-10-26
  • 2021-12-12
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案