How to Subtract Minutes

后端 未结 12 965
情书的邮戳
情书的邮戳 2020-12-15 15:48

I want to send a reminder email.I don\'t want to use cron on Linux/Unix/BSD box or Scheduled Tasks on Windows.

I\'m trying to subtract 15 minutes from t

12条回答
  •  春和景丽
    2020-12-15 16:39

    Following is the way you can add days / hours / minutes / sec to current time

      $addInterval = date('Y-m-d H:i:s', strtotime("+$days days $hours hours $minute minute $sec second", strtotime(currentTime)));
    

提交回复
热议问题