hi i want to exclude sat and sun from this function.currently this is calculating all days
function human_timing_mins_hrs_days_only($time)
{
$time = time() - $time; // to get the time since that moment
$tokens = array (
86400 => 'day',
3600 => 'hour',
60 => 'min',
0 => 'min'
);
foreach ($tokens as $unit => $text) {
if ($time < $unit) continue;
$numberOfUnits = floor($time / $unit);
return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'');
}
}