I have a record that has a field created_at
with the following format: created_at: Tue, 26 Jan 2016 23:31:27 UTC +00:00
.
I can compare it against specific days doing something like: created_at >= 5.days.ago
.
Is there a simple way to calculate how many days have passed since a date object like created_at
without iterating over n.days.ago
?