Packages

A simple library which converts the values of maps from various string representations of dates and times into native Elixir 1.3 dates. This is useful as a plug for converting user input into something that can reliably be sent to Ecto for saving to a database.

Current section

Files

Jump to
Raw

mix.exs

defmodule DateParams.Mixfile do
use Mix.Project
def project do
[app: :date_params,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description,
package: package,
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[{:calendar, "~>0.16.0"}]
end
defp description do
"""
A simple library which converts the values of maps from various string
representations of dates and times into native Elixir 1.3 dates.
This is useful as a plug for converting user input into something that can
reliably be sent to Ecto for saving to a database.
"""
end
defp package do
%{licenses: ["MIT"],
maintainers: ["Jeremy Boles"],
links: %{
"Homepage" => "https://git.centralstandard.com/open-source/date-params"
}
}
end
end