最佳答案
How can I get yesterday's date?
maybe:
@get_time_now = Time.now.strftime('%m/%d/%Y') / 86400
or
@get_time_now = Time.now.strftime('%m/%d/%Y') - 1.day
or
@get_time_now = Time.now. / 86400
86400 = 1 day, right? (60 * 60 * 24)