Elixir casting question

How does the ~T[04:20:28.168984] sigil (or really Time object), know how to implicitly cast itself to a string when interpolating it?

I’m coming from ruby, where this answer is obvious, but from a functional perspective I’m trying to understand how it knows.

It is via a Protocol. :slight_smile:

1 Like

Ah-ha! Thank you… :slight_smile: