I came up with this solution:
Code:
$totalMinutes = datetime\diff(incidentEndtime, incidentstarttime, 'minutes'); $hours = number\format(number\floor(($totalMinutes / 60), 0)); $minutes = number\format(number\floor(($totalMinutes - ($hours * 60)), 0)); impactDuration = string\concatenate($hours,' Hours ', $minutes, ' Minutes');
Feel free to correct me, but so far it seems to work.
Leave a comment: