5i365 (我心飞扬)当前离线
上尉
$d = @( '00:04:30' '00:05:25' '00:05:20' )复制代码
went 当前在线
少校
$d = @( '00:04:30' '00:05:25' '00:05:20' ) $h = $m = $s = 0 $d | foreach { $arr = $_ -split ':' $s += [int]$arr[2] $m += [System.Math]::Floor($s / 60); $s = $s % 60 $m += [int]$arr[1] $h += [System.Math]::Floor($m / 60); $m = $m % 60 $h += [int]$arr[0] } '{0}:{1}:{2}' -f $h,$m,$s复制代码
$d = @( '00:04:30' '00:05:25' '00:05:20' ) $t = [timespan]::Zero $d | foreach { $t += [timespan]$_ } '{0}:{1}:{2}' -f $t.Hours,$t.Minutes,$t.Seconds复制代码
评分人数
TOP