title: how to convert minutes to days,hours,minutes
body: <p>how to convert minutes into days hours and minutes in java ( we have a week here , 7 days )</p>
  
  <pre><code> public String timeConvert(int time){
     String t = "";
  
     int h = 00;
     int m = 00;
  
    // h= (int) (time / 60);
    // m = (int) (time % 60);
  
    // if(h&gt;=24) h=00;
  
     if((time&gt;=0) &amp;&amp; (time&lt;=24*60)){
        h= (int) (time / 60);
        m = (int) (time % 60);
     }else if((time&gt;24*60) &amp;&amp; (time&lt;=24*60*2)){
         h= (int) (time / (1440));
        m = (int) (time % (1440));
     }else if((time&gt;24*60*2) &amp;&amp; (time&lt;=24*60*3)){
         h= (int) (time / (2880));
        m = (int) (time % (2880));
     }else if((time&gt;24*60*3) &amp;&amp; (time&lt;=24*60*4)){
         h= (int) (time / (2880*2));
        m = (int) (time % (2880*2));
     }else if((time&gt;24*60*4) &amp;&amp; (time&lt;=24*60*5)){
         h= (int) (time / (2880*3));
        m = (int) (time % (2880*3));
     }else if((time&gt;24*60*5) &amp;&amp; (time&lt;=24*60*6)){
         h= (int) (time / (2880*4));
        m = (int) (time % (2880*4));
     }else if((time&gt;24*60*6) &amp;&amp; (time&lt;=24*60*7)){
         h= (int) (time / (2880*5));
        m = (int) (time % (2880*5));
     }
  
     t =h+":"+m ;
     return t;
   }
  </code></pre>
  
  <p>I tried this but it dont work</p>
  
  <p>thanks</p>