首页 > Web开发 > 详细

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

时间:2017-11-19 15:15:15      阅读:386      评论:0      收藏:0      [点我收藏+]

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);

 

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

原文:http://www.cnblogs.com/achengmu/p/7859722.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!