Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 检查时间戳是否为 x 小时?
在 PHP 中,如何确定从timestamp(格式为2012-08-06 18:22:02)到当前时间是否已经 3 小时或更长时间。
timestamp
2012-08-06 18:22:02
if (time() > (strtotime($timeToCheck) + 10800))