我想发送提醒电子邮件。我不想在Linux/Unix/BSD框中使用cron
或在Windows上使用计划任务。如何减去分钟
我想从当前时间减去15分钟。
这里是我到目前为止的代码(不工作):
$days = date("j",time());
$months = date("n",time());
$years = date("Y",time());
$hours = date("G",time());
$mins = (date("i",time()));
$secs = date("s",time());
$mins = $mins-15;
我得到了@thomas的最佳答案 –