Format a datetime into a string with milliseconds

Format a datetime into a string with milliseconds

The Python Oracle

54 года назад

8 Просмотров

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: City Beneath the Waves Looping

--

Chapters
00:00 Question
00:19 Accepted answer (Score 583)
00:44 Answer 2 (Score 145)
01:01 Answer 3 (Score 34)
01:51 Answer 4 (Score 29)
02:05 Thank you

--

Full question
https://stackoverflow.com/questions/7588511/format-a-datetime-into-a-string-with-milliseconds

Question links:
[datetime]: https://docs.python.org/3/library/datetime.html#datetime-objects

Answer 1 links:
[isoformat]: https://docs.python.org/3/library/datetime.html#datetime.datetime.isoformat

Answer 2 links:
[@Cabbi raised the issue]: https://stackoverflow.com/questions/7588511/format-a-datetime-into-a-string-with-milliseconds/71715115#comment54999511_18406412
[Python 2.7]: https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
[documentation]: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes

Answer 3 links:
[strftime]: http://docs.python.org/library/datetime.html#strftime-strptime-behavior

--

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

--

Tags
#python #datetime #stringformatting #milliseconds

#avk47

Тэги:

#avk47 #datetime #milliseconds #python #stringformatting
Ссылки и html тэги не поддерживаются


Комментарии: