Help for this page

Select Code to Download


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