title: convert HH:MM:SS to seconds or minutes with delphi
body: <p>Can someone advise me on the best way to convert a duration formated HH:MM:SS to seconds or minutes only?</p>
  
  <p>ie. 00:01:49 = 109secs</p>
  
  <p>I´m using this code but not work</p>
  
  <pre><code>var
  i: real;
  j: integer;
  begin
  i := frac(real(StrToTime('00:00:01')));
  j := trunc(frac(real(StrToTime('01:00:00'))) / i );
  memo2.lines.add(inttostr(j));
  </code></pre>
  
  <p>when I try the code with 00:10:00 return 599</p>
  
  <p>thanks</p>