Welcome Guest, Not a member yet? Register   Sign In
Time difference craziness
#1

[eluser]stuffradio[/eluser]
Some reason, when the time difference gets into the hours... it sometimes shows all the time differences as 354940.6 hours ago hours, etc. Here's the code I'm using:

Code:
$time = (time() - $rss->updated) / 60;
$hours = round($time / 60, 1);

$time is used for minutes, and $hours is the hours. $rss->updated is just a timestamp from the time it was inserted into the db. So why do I get these crazy hour differences sometimes?


Messages In This Thread
Time difference craziness - by El Forum - 06-28-2010, 10:41 PM
Time difference craziness - by El Forum - 06-29-2010, 07:24 AM
Time difference craziness - by El Forum - 06-29-2010, 09:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB