title: Converting hours in decimal format
body: <p>I've tried mutliple solutions to this problem but I can't seem to get it.</p>
  
  <p>I have time in decimal format, which is in hours. I want to make it much cleaner by changing it into a DD:HH:MM:SS format.</p>
  
  <h2>Example:</h2>
  
  <p><strike>10.89 hours == 10 hours, 53 minutes, 40 seconds</strike></p>
  
  <p><strong>EDIT</strong>: 10.894945454545455 == 10 hours, 53 minutes, 40 seconds</p>
  
  <h2>What I've tried:</h2>
  
  <pre><code>int hours = (int) ((finalBuildTime) % 1);
  int minutes = (int) ((finalBuildTime * (60*60)) % 60);
  int seconds = (int) ((finalBuildTime * 3600) % 60);
  
  return String.format("%s(h) %s(m) %s(s)", hours, minutes, seconds);
  </code></pre>
  
  <p>Which returned: <code>0(h) 41(m) 41(s)</code></p>
  
  <p>Any suggestions?</p>