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.

classification
Title: strftime should support %f to print milliseconds
Type: enhancement Stage: resolved
Components: Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: r.david.murray, tonn81
Priority: normal Keywords:

Created on 2014-11-12 17:30 by tonn81, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg231085 - (view) Author: Артём Скорецкий (tonn81) Date: 2014-11-12 17:30
Now you cannot get milli (micro) seconds using strftime. It should be fixed.

AFAIK %f should be the right pattern for this
msg231091 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-11-12 17:57
You are talking about time.strftime, I presume.  datetime supports %f.  time.strftime does not, because it wraps the system strftime, and that does not support %f (at least not on my linux system).
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67046
2014-11-12 17:57:46r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg231091

resolution: not a bug
stage: resolved
2014-11-12 17:30:57tonn81create