This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients docs@python, rhettinger, vivekvashist
Date 2021-12-31.05:34:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640928890.22.0.220225923359.issue46079@roundup.psfhosted.org>
In-reply-to
Content
I'm thinking of this an a replacement example:

>>> import json
>>> import urllib.request
>>> url = "http://worldtimeapi.org/api/timezone/America/Los_Angeles"
>>> with urllib.request.urlopen(url) as response:
...     timeinfo = json.load(response)
...
>>> print(timeinfo['datetime'])
2021-12-30T21:32:08.588278-08:00
History
Date User Action Args
2021-12-31 05:34:50rhettingersetrecipients: + rhettinger, docs@python, vivekvashist
2021-12-31 05:34:50rhettingersetmessageid: <1640928890.22.0.220225923359.issue46079@roundup.psfhosted.org>
2021-12-31 05:34:50rhettingerlinkissue46079 messages
2021-12-31 05:34:50rhettingercreate