DateTime already has from_iso8601/2. I thought it might make sense to have a version that returns a DateTime instead of a tuple. Similar to Date.from_iso8601!/2.
I'm not sure what parsing has to do with it considering there's already a function that parses ISO 8601 into DateTime. I apologize if I'm missing something obvious. On Tuesday, August 29, 2017 at 11:59:52 AM UTC-4, José Valim wrote: > > 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] > <javascript:>> 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] <javascript:>. >> 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/149bcdca-a24b-4d0c-81ad-87d4b422c241%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
