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.
目前我正在像这样在数据库中存储时间戳1378852898
1378852898
如何根据当前情况检查time()它是否在 PHP 的最后 10 分钟内?
time()
if (time() - $timestampvar < 10 * 60) { ... }.
if (time() - $timestampvar < 10 * 60) { ... }