title: Time in hours and minutes... please suggest me
body: <p>for login_details  am calculating the time between login and logout but its calculating only in minutes,  want in hours and minutes. please help me and  written the code as below</p>
  
  <pre><code>   &lt;table&gt;
    &lt;%count = 1%&gt;
        &lt;%@login_info.each do |l| %&gt;
         &lt;tr&gt;
          &lt;td&gt;&lt;%= count%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=l.user.name%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=Location.find(l.location_id).name%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=showdatetime(l.login_time)%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%=showdatetime(l.logout_time)%&gt;&lt;/td&gt;
  
       &lt;td&gt; &lt;%= time=(l.logout_time.minus_with_coercion(l.login_time)/60)%&gt;minutes&lt;/td&gt;  
  
  
          &lt;/tr&gt;
       &lt;%count = count+1%&gt;          
        &lt;%end%&gt;
      &lt;/table&gt;
  </code></pre>