rt
// 6分钟前
date('Y-m-d H:i:s',strtotime('-6 mins'))
// 3小时前
date('Y-m-d H:i:s',strtotime('-3 hours'))
// 3天前
date('Y-m-d H:i:s',strtotime('-3 days'))
// 3个月前
date('Y-m-d H:i:s',strtotime('-3 months'))
// 1个月后
date('Y-m-d H:i:s',strtotime('+1 month'))
// 7天后
date('Y-m-d H:i:s',strtotime('+7 days'))
// 其实是有规律可寻的,xxx前 就用-负号加上xxx,如大于1xxx 加s【单位英文的复数形式】
// 如果是xxx后,就用+加上xxx >1 同样加s