Answers for "get current date time python strftime"

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 "get current date time python strftime"

Python Answers by Framework

Browse Popular Code Answers by Language