A simple Ecto custom type for the Postgres tstzrange type.
Based on: https://gist.github.com/felipegasparini/7c9a6fa0c2c463c17540b8e8544f16cf With the following differences:
- Don't use the now-deprecated
Ecto.Datetime - Implement
tstzrangeinstead oftsrange - Use a tuple to represent a range
{start, finish}rather than a list[start, finish]