Java date-time difference
<pre><code>long d1Ms = current_date.getTime();
long d2Ms = last_time.getTime();
long diff = Math.abs((d1Ms - d2Ms) / 60000);
System.out.println("d1MS: " + d1Ms);
System.out.println("d2MS: " + d2Ms);
System.out.println("Time difference (abs): " + diff)
</code></pre>

<p>my current_date &amp; last_time values are.</p>

<pre><code>current_date: Tue Apr 24 11:07:22 IST 2012
last_time:    Mon Apr 23 04:11:48 IST 2012
</code></pre>

<p>it displays time difference:1855 but it should be less than 1440 because duration is less than 24 hrs.why it so? and what is the solution to get proper difference?</p>
