title: In Java, how do I get the difference in seconds between 2 dates?
body: <p>The Java class library has a class named DateTime. DateTime has this method:</p>
  
  <pre><code>int daysBetween(DateTime other)
  </code></pre>
  
  <p>which returns the number of days between this and the parameter.
  It doesn't have a method</p>
  
  <pre><code>int secondsBetween(DateTime other)
  </code></pre>
  
  <p>which I happen to need.
  Is there a class which is similar to DateTime but has such a method?</p>