use Time::Piece; $t = Time::Piece->strptime('%T', $time_string); #### $seconds = $t2 - $t1; print "Diff (secs): ", $seconds->seconds, "\n"; #### $total_secs = $s2 + $s1; print "Secs: ", $total_secs->seconds, "\n";
## $seconds = $t2 - $t1; print "Diff (secs): ", $seconds->seconds, "\n"; ##
## $total_secs = $s2 + $s1; print "Secs: ", $total_secs->seconds, "\n";