:datetime with constraints vs :utc_datetime_usec
Hey all, I’m looking at the docs for the different datetime options and they mention
>A wrapper around :datetime for backwards compatibility
https://hexdocs.pm/ash/Ash.Type.UtcDatetimeUsec.html
In a new project with the latest version of Ash what is the most appropriate way to define a timestamp with microsecond precision?
Should I prefer:
Or
I don’t quite understand what the implication of the “warning” about backward compatibility is :/
Solution:Jump to solution
They are equivalent and will likely not change anytime soon. Someday we may warn when you use
:utc_datetime_usec
over the constraint.2 Replies
Solution
They are equivalent and will likely not change anytime soon. Someday we may warn when you use
:utc_datetime_usec
over the constraint.likely starting in 4.0