How to Subtract Minutes

后端 未结 12 976
情书的邮戳
情书的邮戳 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:15

    How about substracting the 15 minutes from time() before converting it?

    $time = time() - (15 * 60);
    

    And then use $time instead of time() in your code.

提交回复
热议问题