Python Forum
strftime - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: strftime (/thread-16614.html)



strftime - Skaperen - Mar-07-2019

datetime.datetime.strftime()
vs.
time.strftime()

there is a difference in supported formatting. the "%f" specification is supported in the former but not the latter even though time.time() does include fractions of a second (as of 3.5). is there a reason for this apparent inconsistency? i do know there is a way to get the fractional time value and append it to time.strftime() results. but the is awkward.