[Python-Dev] Status on PEP-431 Timezones
Alexander Belopolsky
alexander.belopolsky at gmail.com
Sat Apr 11 02:29:42 CEST 2015
On Fri, Apr 10, 2015 at 12:43 PM, Isaac Schwabacher <ischwabacher at wisc.edu>
wrote:
> (and strptime doesn't even let you pass in a time zone)
Not true:
>>> datetime.strptime('-0400 EDT', '%z %Z')
datetime.datetime(1900, 1, 1, 0, 0,
tzinfo=datetime.timezone(datetime.timedelta(-1, 72000), 'EDT'))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150410/41f58ecf/attachment.html>
More information about the Python-Dev
mailing list