title: How to substract a day/hour/minute from joda-time DateTime in Scala?
body: <p>I am trying to use joda-time with <a href="http://github.com/jorgeortiz85/scala-time" rel="noreferrer">its Scala wrapper</a>.</p>
  
  <p>Saying <code>val dt</code> is a <code>DateTime</code> and contains a <code>date (zero time)</code>, how do I get the date of the day befor it? <code>dt - 1.days</code> doesn't work and gives </p>
  
  <pre><code>"type mismatch" ("found: org.scala_tools.time.Imports.DateTime, required: ?{val -:?}").
  </code></pre>
  
  <p>Scala-time examples like <code>2.hours + 45.minutes + 10.seconds</code> don't work either saying that <code>hours</code> is not a member of an <code>Int</code>.</p>
  
  <p>Joda-time examples like <code>DateTime.dayOfWeek().addToCopy(3)</code> don't work either as <code>dayOfWeek</code>, for example, is not a member of <code>org.scala_tools.time.Imports.DateTime</code>.</p>
  
  <p>Formatted <code>DateTime</code>input and output seem to work as meant.</p>
  
  <p><strong>UPDATE:</strong> Seems to be a bug of NetBeans IDE.It shows the error, while compiler compiles ok and the program works as expected with <code>dt - 1.days</code> syntax.</p>