title: Using Joda, How do I determine if a given date is between time x and a time 3 hours earlier than x?
body: <p>What is the simplest way to use Joda time and get something like the following behavior:</p>
  
  <pre><code>public boolean check( DateTime checkTime )
  {
      DateTime someTime = new DateTime(); //set to "now" for sake of example
      return checkTime.isBefore( someTime ) &amp;&amp; checkTime.notMoreThanThreeHoursBefore( someTime );
  }
  </code></pre>
  
  <p>So if <code>someTime</code> is set to 15:00 and <code>checkTime</code> is set to 12:15 it should return true.</p>
  
  <p>If <code>someTime</code> is set to 15:00 and <code>checkTime</code> is set to 11:45 it should return false because <code>checkTime</code> is more than 3 hours before <code>someTime</code>.</p>
  
  <p>If <code>someTime</code> is set to 15:00 and <code>checkTime</code> is set to 15:15 it should return false because <code>checkTime</code> is after <code>someTime</code>.</p>