The Python Oracle

Python UTC datetime object's ISO format doesn't include Z (Zulu or Zero offset)

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction

--

Chapters
00:00 Question
00:35 Accepted answer (Score 80)
01:41 Answer 2 (Score 149)
02:59 Answer 3 (Score 40)
04:23 Answer 4 (Score 37)
04:59 Thank you

--

Full question
https://stackoverflow.com/questions/1965...

Accepted answer links:
[if no time zone info is given, assumed to be local time]: http://en.wikipedia.org/wiki/ISO_8601#Ti...
[pytz package]: https://pypi.python.org/pypi/pytz/

Answer 2 links:
[military timezone]: https://en.wikipedia.org/wiki/List_of_mi...
[Datetime, Python Standard Library]: https://docs.python.org/2/library/dateti...
[datetime.strftime()]: https://docs.python.org/3/library/dateti...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #datetime #timestamp #iso8601

#avk47