title: Convert TimeSpan to Double
body: <p>I'm having some trouble with convertion of timespan to double. That's the code I used to convert double value to timespan:</p>
  
  <pre><code>int r = 150;
  string t = TimeSpan.FromHours(Convert.ToDouble(r)).ToString(@"dd\.hh\:mm\:ss");
  </code></pre>
  
  <p>It gives:</p>
  
  <blockquote>
    <p>t--> 6.06:00:00</p>
  </blockquote>
  
  <p>Now I need to retrieve the value (<code>150</code>) from timespan (<code>6.06:00:00</code>).</p>