Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
strftime
#1
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020