I am wondering how I could display the time on a webpage on my localhost using Python and Flask. So display this:
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
How could I update the page so that the time is always right?
Thanks for your help
Aucun commentaire:
Enregistrer un commentaire