$nehtotal = (time() - $neh[datewon]) / 86400;
$nehhours = $nehtotal / 3600;
$nehminutes = $nehhours / 60;
$nehdays = floor($nehtotal);
It's a pretty basic script. Right now it is outputting this.
0 days
1.7316100823045E-05 hours
2.8860168038409E-07 minutes
My problem is when it comes to rounding basically if the number is 0 and then decimals after it, I want it to be a 0, same with 1, same with 2. I tried using the floor function on for example minutes, but everything I floor it with returns back a value of 0. In matter of fact the only way I can figure out hours and minutes is if I leave it in a long decimal format and well I just don't want that. I want to take the base number and loose the decimals but can't seem to figure out how to do it, and also what are those -05 and -07 things at the end mean?