Thread Uhrzeit umrechnen
(3 answers)
Opened by choff at 2011-10-19 09:06
Ungetestet...
Code (perl): (dl
)
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; |