Packages

TimeSeer is an Elixir library for parsing dates and times and returning Erlang style date and time tuples. Eg. "15:12:07" "2:42pm" "24/12/2014" will become {15,12,7}, {14,42,0}, and {2014,12,24} respectively.

Current section

Files

Jump to
time_seer lib time_seer.ex
Raw

lib/time_seer.ex

defmodule TimeSeer do
def time(string) do TimeSeer.Time.time(string) end
def date(string) do TimeSeer.Date.date(string) end
def date(string, opts) do TimeSeer.Date.date(string, opts) end
end