title: Rails: How I can get yesterday's date?
body: <p>How can I get yesterday's date?</p>
  
  <p>maybe:</p>
  
  <pre><code>@get_time_now    = Time.now.strftime('%m/%d/%Y') / 86400 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>@get_time_now    = Time.now.strftime('%m/%d/%Y') - 1.day
  </code></pre>
  
  <p>or</p>
  
  <pre><code>@get_time_now    = Time.now. / 86400 
  </code></pre>
  
  <p>86400 = 1 day, right? (60 * 60 * 24)</p>