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

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

 

posted @ 2017-11-19 14:38  穆晟铭  阅读(13101)  评论(0编辑  收藏  举报