1 2 3 4 5
$array[8] = int($array[8]/60000); #s und ms fallen weg my $days = int($array[8]/(60*24)); my $hours = int(($array[8]-60*24*$days)/60); my $mins = $array[8] % 60; #modulo gibt den rest zurück printf "%02d:%02d:%02d\n",$days,$hours,$mins;
1 2 3
my (undef, $mins, $hours, $days) = gmtime($array[8]/1000); $days--; printf "%02d:%02d:%02d\n", $days, $hours, $mins;