vor einiger Zeit habe ich diese Funktion hierfür mal geschrieben:
Code:
Func _Time_SecToHour($iSeconds, $delim = ':')
If Not IsArray($iSeconds) Then
Local $tmp[3] = [Int($iSeconds / 3600), Int(Mod($iSeconds, 3600) / 60), Mod($iSeconds, 60)]
$iSeconds = $tmp
$tmp = 0
EndIf
If $iSeconds[0] = 0 And $iSeconds[1] = 0 Then
Return $iSeconds[2]
ElseIf $iSeconds[0] = 0 Then
Return StringFormat('%02d' & $delim & '%02d', $iSeconds[1], $iSeconds[2])
Else
Return StringFormat('%02d' & $delim & '%02d' & $delim & '%02d', $iSeconds[0], $iSeconds[1], $iSeconds[2])
EndIf
EndFunc
Der Funktionsname ist im Laufe der Zeit allerdings etwas unzutreffend geworden^^