Ecto Query "ago" and "from_now"
Ecto.Query has 2 very useful functions for Datetime querying. Here's ago/2:
And here's from_now/2
And finally this is the list of intervals that it's supported:
- year
- month
- week
- day
- hour
- minute
- second
- millisecond
- microsecond