Creating a Custom Ecto Duration Type
This blog post walks through how to create a custom ecto type through an example of parsing timecodes to and from seconds.
https://medium.com/@rcdilorenzo/creating-a-custom-ecto-duration-type-994e32ad4613
Read next Writing a Blog Engine in Phoenix and Elixir: Part 8, finishing comments