Uncategorized

Current Time in Python By Using loop



from datetime import datetime
import time
while True:
  n = datetime.now()
  a = (str(n).split('-'))[2][2:11]
  print("Time :",a)
  time.sleep(1)



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *