 defmodule HELL.Utils do
 
+  @doc """
+  Generates a date in the future, according to the given precision. Defaults to
+  seconds.
+  """
   def date_after(seconds, precision \\ :second) do
     DateTime.utc_now()
     |> DateTime.to_unix(precision)

  def ensure_list(value),
    do: [value]

end

    |> DateTime.from_unix!(precision)
  end

  @doc """
  Generates a date in the past, according to the given precision. Defaults to
  seconds.
  """
  def date_before(seconds, precision \\ :second),
    do: date_after(-seconds, precision)

