How to use Elixir function in ecto query

If you want interval’s I have a type library here:

/me loves intervals