Love Elixir! So good!

Recently we found ourselves writing a lot of DateTime literals to feed into 
our unit tests like this:

DateTime.from_naive!(~N[2016-05-05 01:01:42], "Etc/UTC")

Is there a simpler way to specify human readable timestamp literals in 
code? Could there be? I'm not sure what the best sigil would be, but 
something like this?

~Z[2016-05-05T01:01:42Z]

(That is ISO 8601 format.)

Love and peace and many thanks,
Greg

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/bbeac9fe-c978-4459-86f4-61c0e504ae4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to