title: Calculate difference in days ActiveSupport:TimeWithZone in the most "rubyish" style?
body: <p>I have a feeling someone is going to point me to another question that answers this but I've been searching with no luck over this simple issue.</p>
  
  <p>I have a Activerecord with a datetime property. It returns as an ActiveSupport:TimeWithZone. I know I can't compare that to DateTime.now because that doesn't include a zone so I need to use Time.zone. Makes sense.</p>
  
  <p>What I'm wondering is stylewise is there a "cleaner" way to do this than subtracting and dividing the result by 86400? </p>
  
  <p>Here's what I do:</p>
  
  <pre><code>((Time.zone.now - myActiveRecord.visit_date)/86400).to_i
  </code></pre>
  
  <p>Works but seems un-rubyish and I feel like I'm missing something. Should I be casting, comparing or converting some other route or is this really the typical way to do this in rails? Appreciate any tips or a link to a question that already covers this.</p>
  
  <p>Thank you</p>