title: How to use Joda-Time with Maven?
body: <p>I it seems to be a very stupid question, because <a href="http://www.joda.org/joda-time/" rel="nofollow">Joda-Time</a> is easy to use that there is no explanation about how to use it in its user guide (and I don’t find useful answers on the web).</p>
  
  <p>I try to use the method of Joda-Time which can calculate the duration between two dates. I have to compare the current date with an other date. </p>
  
  <p>I cannot use <code>LocalDateTime</code> because the class does not exist (so I created it), but I saw that "duration" need to implement <code>ReadableDuration</code> in the class but this interface does not exist too...</p>
  
  <p>I tried to write :</p>
  
  <pre><code>DateTime dt = new DateTime(juDate);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>public class LocalDateTime implements ReadableDuration{
  
      public LocalDateTime() {
      }
  }
  </code></pre>
  
  <p>I have install Joda-Time by dependency on <a href="https://en.m.wikipedia.org/wiki/Apache_Maven" rel="nofollow">Maven</a>, I have the 2.9.1 version.</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;joda-time&lt;/groupId&gt;
          &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
          &lt;version&gt;2.9.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Can you explain to a newbie how to do, please ?</p>