Thread SQL: Alter eines timestamps ermitteln
(7 answers)
Opened by pktm at 2008-08-14 23:49 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 #!/usr/bin/perl use strict; use warnings; my $time_first=time(); sleep(120);# zwei Minuten warten my $time_later=time(); my $time_diff=$time_later-$time_first; $time_diff /= 60; # timestamps sind in Sekunden. print "Program schlief von ".localtime($time_fist)." bis ".localtime($time_later).", also $ime_diff Minuten\n"; Wo ist das Problem? |