How to convert provided number of hours into days hours minutes in javascript?
<p>I have an input hours which will be 0 to any hours, for example </p>

<p>25 hours... I need an output in days hours and minutes: 1 day 1 hour 0 min</p>

<p>I have tried and it returns days but help me to convert to days hrs and min
var flag_hours = 25;</p>

<pre><code>if(flag_hours &gt;=24)
{
     var totaldays = flag_bookbefore/24;
     alert(totaldays);
}
</code></pre>

<p>which gives output as : <code>1.0416666666666667</code></p>

<p>Thanks in advance!</p>