title: Ruby - DateTime, cookbook solution to show the difference between two times is not working, can you see what's wrong?
body: <p>I have two variables containing dates:</p>
  
  <pre><code>curr_time = Wed Sep 21 11:13:50 -0700 2011
  prev_time = Wed, 21 Sep 2011 09:44:56 UTC +00:00
  </code></pre>
  
  <p>to find out how many minutes have passed between these two I am using the following:</p>
  
  <pre><code>elapsed = ((curr_time - prev_time) / (60)).to_i
  </code></pre>
  
  <p>However the result is 522, it should be 89 minutes.</p>
  
  <p>I've tried this a few different ways, but I'm clearly missing something here.</p>
  
  <p>Any help would be appreciated! </p>