A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20171128/49945a90/attachment.html below:

<html><head></head><body>I think the latest version can now strptime offsets of the form Â±HH:MM with %z, so there's no longer anything blocking you from parsing from all isoformat() outputs with strptime, provided you know which one you need.<br>
<br>
I think a from_isoformat() like method that *only* supports isoformat outputs is a fine idea, though, with a fairly obvious interface. I'd be happy to take a crack at it (I've been working on the somewhat harder problem of an iso8601 compliant parser for dateutil, so this is fresh in my mind).<br><br><div class="gmail_quote">On November 28, 2017 2:51:14 PM EST, Mike Miller <python-dev@mgmiller.net> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">This may have gotten bogged down again.  Could we get the output of <br />datetime.isoformat() parsed at a minimum?  Perfection is not required.<br /><br />Looks like there is a patch or two and test cases on the bug.<br /><br />-Mike<br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Could anyone put this five year-old bug about parsing iso8601 format date-times <br /> on the front burner?<br /> <br />      <a href="http://bugs.python.org/issue15873">http://bugs.python.org/issue15873</a><br /> <br /> In the comments there's a lot of hand-wringing about different variations that <br /> bogged it down, but right now I only need it to handle the output of <br /> datetime.isoformat():<br /> <br />      >>> dt.isoformat()<br />      '2017-10-20T08:20:08.986166+00:00'<br /> <br /> Perhaps if we could get that minimum first step in, it could be iterated on and <br /> made more lenient in the future.<br /> <br /></blockquote><hr /><br />Python-Dev mailing list<br />Python-Dev@python.org<br /><a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br />Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/paul%40ganssle.io">https://mail.python.org/mailman/options/python-dev/paul%40ganssle.io</a><br /></pre></blockquote></div></body></html>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4