Python Forum
looping through every strftime in HHMMSS format
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looping through every strftime in HHMMSS format
#5
>>> for hh in range(24):
...   for mm in range(60):
...     for ss in range(60):
...       print("{:02.0f}{:02.0f}{:02.0f}".format(hh, mm, ss))
Reply


Messages In This Thread
RE: looping through every strftime in HHMMSS format - by nilamo - Sep-28-2017, 09:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  calling strftime does not display current time tonytech 2 2,158 May-05-2020, 04:53 AM
Last Post: tonytech
  time. strftime jor 1 2,547 Mar-13-2018, 02:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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