I only skimmed this so pardon if this has been said before, or if it isn’t exactly a problem.
also I use
timex in a Nerves application, which pulls in the
tzdata application. These are my only experiences with time libraries in Elixir other than the stdlib.
Firstly, i would love for stdlib to have timezone support, because that is the only reason i use/need
timex. (I try not to use deps unless i really need them due to various constraints).
However, syncing the timezone database is something a little weird.
tzdata downloads the package on a timer of some sort and writes it to disk. From what i know about the elixir stdlib, and a quick poke thru
:observer, i don’t think there is anything else that does anything to this extent right now.
obviously defining a
@behaviour as described above would alleviate this to some extent, even so i think implementing this at the stdlib level would be a little difficult and messy to cover all situations. (thinking from a Nerves point of view where the filesystem is read only, and network is not guaranteed.)
anyway sorry for that longwinded post, just wanted to express that blurb while this is being discussed.