在php中查找当前时间后60分钟的unix时间戳的代码


code to find the unix timestamp of 60 minutes after the current time in php

echo strtotime("现在")它给出了当前Unix时间戳的输出,但什么时候在php中找到当前时间后60分钟的Unix时间戳。

尝试使用-

strtotime("+ 60 minutes");

这应该能在中工作

time() + 3600; // i.e. 60 * 60; seconds

参考编号:http://php.net/manual/en/function.time.php

echo strtotime("+60 minutes");

PHP strtotime()