Leser: 2
7 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
for ($i = 0; $i <= $ellast; $i++){
$timfn[$i] = ×hift($timfn[$i]);
if (($timfn[$i+1]) == ($timfn[$i]+1)){$s++; push @secondp, &gofor($timfn[$i],1);}
else {push @secondp , $s; $s=0;}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
sub timeshift {
my $time = shift;
(my $hour, my $min,my $sec) = split(/\:/, $time);
my $hsecs = $hour * 3600;
my $msec = $min * 60;
my $esecs = ($hsecs + $msec + $sec);
return $esecs;
}
7 Einträge, 1 Seite |