Python Forum

Full Version: strftime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.