We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Ecto-Date fields I can do query comparisons like this:
from(e in query, where: fragment("? > NOW() - interval '24 hours'", e.some_date))
However that does not work.
operator does not exist: datetimetz > timestamp with time zone
I tried using Timex to generate the value to compare, but that did not work either:
from(e in query, where: e.some_date > ^one_day_ago()) defp one_day_ago do Timex.now() |> Timex.shift(hours: -24) end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With Ecto-Date fields I can do query comparisons like this:
However that does not work.
I tried using Timex to generate the value to compare, but that did not work either:
The text was updated successfully, but these errors were encountered: