title: Calculate total seconds from string in format "HH:mm:ss,fff"
body: <p>In PowerShell V2, I want to calculate the total seconds and milliseconds of a given string.<br>
  My string is <code>00:03:56,908</code> and the desired output would be <code>236.908</code></p>
  
  <p>My working, but awkward code is</p>
  
  <pre><code>$a = "00:03:56,908"
  $a = [datetime]::ParseExact($a,"HH:mm:ss,fff",$null)
  [string]($a.Hour*3600 + $a.Minute*60 + $a.Second) +"."+ [string]$a.Millisecond
  </code></pre>
  
  <p>Is there a smarter / shorter way to achieve this?</p>
  
  <hr>
  
  <p>All I found was .totalseconds from a TimeSpan object. But this code was even longer in my attempt</p>