Answers for "python strftime print current date time"

2

get current time in python with strftime

now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Posted by: Guest on July-26-2021

Code answers related to "python strftime print current date time"

Python Answers by Framework

Browse Popular Code Answers by Language