Ecto.Query.API.ago

You're seeing just the function ago, go back to Ecto.Query.API module for more information.

Subtracts the given interval from the current time in UTC.

The current time in UTC is retrieved from Elixir and not from the database.

See Intervals for supported interval values.

Examples

from p in Post, where: p.published_at > ago(3, "month")