dates interval bigger then it shoud be
<p>I have: startDate = 24.03.2013 21:01:20  endDate = 24.03.2013 21:01:40</p>

<p>I do in my code</p>

<pre><code>Date d = new Date(endDate.getTime()-startDate.getTime)
</code></pre>

<p>and d = 01.01.1970 02:00:20 </p>

<p>Where it takes 2 hours, the interval should be 20 seconds, but I get 2 hours and 20 seconds.
Why it happens? What to do with this?</p>
