parse and format rfc3339 strings in elixir and erlang
You install it as a rebar dependency by adding the following in the deps section of rebar.config
{rfc3339, {git, "git://github.com/talentdeficit/rfc3339.git", {branch, master}}}
rebar3 compile
rebar3 shell
> rfc3339:parse_to_local_datetime(<<"1996-12-19T16:39:57-08:00">>).
{{1996,12,19},{10,39,57}}
> rfc3339:parse(<<"1937-01-01T12:00:27.87+00:20">>).
{ok,{{1937,1,1},{12,0,27},870000,20}}
> rfc3339:format({date(), time()}).
{ok,<<"2016-07-02T14:04:39Z">>}
-[ ] everything