0
那么我有一个UNIX格式的时间。我需要找出特定时间和当前时间之间的差异。如果差异是5分钟。做一点事。具体时间和当前时间的差异
$sp_time = 1400325952;//Specific time
$currentTime = //current time in UNIX format
$difference = $currentTime - $sp_time;
if($difference >= 5)//if difference is less than or equal to 5minutes
{
//DO SOME STUFF
}
编辑:如何在几分钟内找到差异以及如何获得当前时间?
请告诉我你的问题就在这里?描述你的问题/错误。 – 2015-02-10 05:37:56