ISO does not specify the timezone, so we cannot parse it into a DateTime.
You can use NaiveDateTime or, if you want to assume a timezone, parse a
NaiveDateTime and then convert it to DateTime.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Tue, Aug 29, 2017 at 5:19 PM, Anthony Smith <[email protected]>
wrote:

> Parses the extended “DateTimes” format described by ISO 8601:2004
> <https://en.wikipedia.org/wiki/ISO_8601>.
>
> Raises if the format is invalid.
>
> This function would be similar to Date.from_iso8601!/2.
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/elixir-lang-core/821de85c-7b35-4bf3-88f8-
> ddcc24d3cc32%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/821de85c-7b35-4bf3-88f8-ddcc24d3cc32%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BHVNCF36dCBBNwa8W%3DH%2BbK8aps%2BT%3D%2BOLMONCNqnsfArQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to