title: Convert TimeSpan to float
body: <p>How do I convert a TimeSpan to a float , taking into account all of the processing unit (hour minute) for example
  if (unit = hour)
  convert TimeSpan to a float hours</p>
  
  <p>In another context, is there not a data type "Timespan" in SQL Server ?</p>